diff --git a/arch/efi/efi/efi.c b/arch/efi/efi/efi.c index ff97783..7de8ec8 100644 --- a/arch/efi/efi/efi.c +++ b/arch/efi/efi/efi.c @@ -104,7 +104,7 @@ free(name); - if (!buf) { + if (IS_ERR(buf)) { free(boot); return NULL; }