[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH v2 25/52] xen/common/efi/boot.c: let custom parameter parsing routines return errno
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@xxxxxxxx> Signed-off-by: Juergen Gross <jgross@xxxxxxxx> Acked-by: Wei Liu <wei.liu2@xxxxxxxxxx> --- xen/common/efi/boot.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); -- 2.12.3 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |