linux-mainline/drivers/base/firmware_loader
Dan Carpenter ffa28312e2 firmware_loader: Fix a NULL vs IS_ERR() check
The crypto_alloc_shash() function doesn't return NULL, it returns
error pointers.  Update the check accordingly.

Fixes: 02fe26f253 ("firmware_loader: Add debug message with checksum for FW file")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com>
Acked-by: Luis Chamberlain <mcgrof@kernel.org>
Link: https://lore.kernel.org/r/36ef6042-ce74-4e8e-9e2c-5b5c28940610@kili.mountain
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-31 20:31:00 +01:00
..
builtin
fallback_platform.c
fallback_table.c
fallback.c
fallback.h
firmware.h firmware_loader: remove #include <generated/utsrelease.h> 2022-12-10 10:33:20 +09:00
Kconfig firmware_loader: rework crypto dependencies 2023-04-20 11:42:31 +02:00
main.c firmware_loader: Fix a NULL vs IS_ERR() check 2023-05-31 20:31:00 +01:00
Makefile
sysfs_upload.c firmware_loader: Fix memory leak in firmware upload 2022-09-01 17:47:27 +02:00
sysfs_upload.h
sysfs.c driver core: class: mark the struct class for sysfs callbacks as constant 2023-03-29 07:54:58 +02:00
sysfs.h firmware_loader: fix up to_fw_sysfs() to preserve const 2022-12-06 16:55:25 +01:00