Message ID | 20170814070849.20986-26-jgross@suse.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/xen/common/efi/boot.c b/xen/common/efi/boot.c index 11bdc7a2a4..25c249ae42 100644 --- a/xen/common/efi/boot.c +++ b/xen/common/efi/boot.c @@ -1306,7 +1306,7 @@ efi_start(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable) static bool __initdata efi_map_uc; -static void __init parse_efi_param(char *s) +static int __init parse_efi_param(char *s) { char *ss; @@ -1329,9 +1329,13 @@ static void __init parse_efi_param(char *s) } else if ( !strcmp(s, "attr=uc") ) efi_map_uc = val; + else + return -EINVAL; s = ss + 1; } while ( ss ); + + return 0; } custom_param("efi", parse_efi_param);