Message ID | 161616054960.398.616542925097476806.tip-bot2@tip-bot2 |
---|---|
State | New |
Headers | show |
Series | [tip:,efi/urgent] efivars: respect EFI_UNSUPPORTED return from firmware | expand |
diff --git a/drivers/firmware/efi/vars.c b/drivers/firmware/efi/vars.c index 41c1d00..abdc8a6 100644 --- a/drivers/firmware/efi/vars.c +++ b/drivers/firmware/efi/vars.c @@ -485,6 +485,10 @@ int efivar_init(int (*func)(efi_char16_t *, efi_guid_t, unsigned long, void *), } break; + case EFI_UNSUPPORTED: + err = -EOPNOTSUPP; + status = EFI_NOT_FOUND; + break; case EFI_NOT_FOUND: break; default: