diff options
| author | Takashi Iwai <tiwai@suse.de> | 2026-11-10 14:51:14 +0200 |
|---|---|---|
| committer | Jarkko Sakkinen <jarkko@kernel.org> | 2026-11-10 14:52:19 +0200 |
| commit | 03fcb358249dc715124b3616f814ea0ecc6ec36c (patch) | |
| tree | f804f1d8d9f16eec0bfd4ae343710b067ed7e97c /include/linux/dynamic_queue_limits.h | |
| parent | c22052a012698ce56d599d75b669d55778521c7c (diff) | |
tpm: acpi: Fix memory leak at tpm_read_log_acpi() error path
When devm_add_action() returns an error, tpm_read_log_acpi() clears
log->bios_event_log unnecessarily to NULL before calling
tpm_bios_log_free(), and it would lead to a memory leak of the
allocated log buffer.
Fix it by simply jumping to the err.
Cc: stable@vger.kernel.org # v6.18+
Fixes: a3a860bc0fd6 ("tpm: Change to kvalloc() in eventlog/acpi.c")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Link: https://lore.kernel.org/r/20261109173756.742248-1-tiwai@suse.de
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Diffstat (limited to 'include/linux/dynamic_queue_limits.h')
0 files changed, 0 insertions, 0 deletions
