linux-stable/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 kbuild: do not quote string values in include/config/auto.conf 2022-01-08 18:03:57 +09:00
Kconfig firmware_loader: rework crypto dependencies 2023-04-20 11:42:31 +02:00
Makefile firmware_loader: Add firmware-upload support 2022-04-26 12:34:28 +02:00
fallback.c firmware_loader: Split sysfs support from fallback 2022-04-26 12:34:09 +02:00
fallback.h firmware_loader: Split sysfs support from fallback 2022-04-26 12:34:09 +02:00
fallback_platform.c firmware: Store opt_flags in fw_priv 2020-10-05 13:37:04 +02:00
fallback_table.c firmware_loader: move firmware sysctl to its own files 2022-01-22 08:33:35 +02:00
firmware.h firmware_loader: remove #include <generated/utsrelease.h> 2022-12-10 10:33:20 +09:00
main.c firmware_loader: Fix a NULL vs IS_ERR() check 2023-05-31 20:31:00 +01:00
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
sysfs_upload.c firmware_loader: Fix memory leak in firmware upload 2022-09-01 17:47:27 +02:00
sysfs_upload.h firmware_loader: Move definitions from sysfs_upload.h to sysfs.h 2022-04-29 16:49:44 +02:00