]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: fix an IS_ERR() vs NULL check
authorDan Carpenter <dan.carpenter@linaro.org>
Thu, 27 Jul 2023 07:16:20 +0000 (10:16 +0300)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 3 Aug 2023 07:21:02 +0000 (09:21 +0200)
commitdae236924ca070fc5ab2aa035f13972191330b4f
tree550fd7cf5515440e73a4be8a9d5b9ddf4e9c33e0
parent1b7e469a66521d90b6f51fe0a27abada664471ba
efi_loader: fix an IS_ERR() vs NULL check

The efi_parse_pkcs7_header() function returns NULL on error so the check
for IS_ERR() should be changed to a NULL check.

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
lib/efi_loader/efi_capsule.c