]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: efi_variable_parse_signature() returns NULL on error
authorPatrick Wildt <patrick@blueri.se>
Thu, 7 May 2020 00:13:18 +0000 (02:13 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 7 May 2020 16:23:16 +0000 (18:23 +0200)
commit9ad15227bb92acc2bf73c60da1bcf2ae3774246d
tree60080d14f1dfae6b98e72a21bd7c0ad81fec906b
parent42a426e027df472714e8d6209cafac291935c331
efi_loader: efi_variable_parse_signature() returns NULL on error

efi_variable_parse_signature() returns NULL on error, so IS_ERR()
is an incorrect check.  The goto err leads to pkcs7_free_message(),
which works fine on a NULL ptr.

Signed-off-by: Patrick Wildt <patrick@blueri.se>
Reviewed-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
lib/efi_loader/efi_variable.c