diff options
Diffstat (limited to 'arch/efi/efi/efi.c')
-rw-r--r-- | arch/efi/efi/efi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/efi/efi/efi.c b/arch/efi/efi/efi.c index ff97783b13..7de8ec82e8 100644 --- a/arch/efi/efi/efi.c +++ b/arch/efi/efi/efi.c @@ -104,7 +104,7 @@ struct efi_boot *efi_get_boot(int num) free(name); - if (!buf) { + if (IS_ERR(buf)) { free(boot); return NULL; } |