projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
efi_loader: efi_variable_parse_signature() returns NULL on error
[platform/kernel/u-boot.git]
/
lib
/
efi_loader
/
efi_variable.c
diff --git
a/lib/efi_loader/efi_variable.c
b/lib/efi_loader/efi_variable.c
index
568bd3c
..
60c1201
100644
(file)
--- a/
lib/efi_loader/efi_variable.c
+++ b/
lib/efi_loader/efi_variable.c
@@
-524,9
+524,8
@@
static efi_status_t efi_variable_authenticate(u16 *variable,
var_sig = efi_variable_parse_signature(auth->auth_info.cert_data,
auth->auth_info.hdr.dwLength
- sizeof(auth->auth_info));
- if (
IS_ERR(var_sig)
) {
+ if (
!var_sig
) {
debug("Parsing variable's signature failed\n");
- var_sig = NULL;
goto err;
}