linux/drivers/base/firmware_loader
Gaosheng Cui 369a9c046c firmware_loader: Fix possible resource leak in fw_log_firmware_info()
The alg instance should be released under the exception path, otherwise
there may be resource leak here.

To mitigate this, free the alg instance with crypto_free_shash when kmalloc
fails.

Fixes: 02fe26f253 ("firmware_loader: Add debug message with checksum for FW file")
Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
Reviewed-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Reviewed-by: Russ Weight <russ.weight@linux.dev>
Link: https://lore.kernel.org/r/20241016110335.3677924-1-cuigaosheng1@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-13 07:13:50 +01:00
..
builtin
Kconfig rust: add firmware abstractions 2024-06-18 18:45:12 +02:00
Makefile
fallback.c
fallback.h
fallback_platform.c
fallback_table.c
firmware.h
main.c firmware_loader: Fix possible resource leak in fw_log_firmware_info() 2024-11-13 07:13:50 +01:00
sysfs.c
sysfs.h
sysfs_upload.c
sysfs_upload.h