Message ID | 20170809070706.13481-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);
Modify the custom parameter parsing routines in: xen/common/efi/boot.c to indicate whether the parameter value was parsed successfully. Cc: Jan Beulich <jbeulich@suse.com> Signed-off-by: Juergen Gross <jgross@suse.com> --- xen/common/efi/boot.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)