mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 07:34:31 +00:00
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>
This commit is contained in:
parent
1b7e469a66
commit
dae236924c
1 changed files with 1 additions and 2 deletions
|
@ -368,9 +368,8 @@ efi_status_t efi_capsule_authenticate(const void *capsule, efi_uintn_t capsule_s
|
||||||
auth_hdr->auth_info.hdr.dwLength
|
auth_hdr->auth_info.hdr.dwLength
|
||||||
- sizeof(auth_hdr->auth_info),
|
- sizeof(auth_hdr->auth_info),
|
||||||
&buf);
|
&buf);
|
||||||
if (IS_ERR(capsule_sig)) {
|
if (!capsule_sig) {
|
||||||
debug("Parsing variable's pkcs7 header failed\n");
|
debug("Parsing variable's pkcs7 header failed\n");
|
||||||
capsule_sig = NULL;
|
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue