]> xenbits.xensource.com Git - xen.git/commitdiff
xen/arch/arm/domain_build.c: let custom parameter parsing routines return errno
authorJuergen Gross <jgross@suse.com>
Wed, 23 Aug 2017 17:36:00 +0000 (19:36 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 25 Aug 2017 14:12:58 +0000 (16:12 +0200)
Modify the custom parameter parsing routines in:

xen/arch/arm/domain_build.c

to indicate whether the parameter value was parsed successfully.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Julien Grall <julien.grall@arm.com>
xen/arch/arm/domain_build.c

index 1bec4fa23ddbefc2f80902730fe3af6d0aedbb37..d6f958550321338d0f4b6446a7135df13657afd8 100644 (file)
@@ -33,9 +33,11 @@ int dom0_11_mapping = 1;
 
 static u64 __initdata dom0_mem;
 
-static void __init parse_dom0_mem(const char *s)
+static int __init parse_dom0_mem(const char *s)
 {
     dom0_mem = parse_size_and_unit(s, &s);
+
+    return *s ? -EINVAL : 0;
 }
 custom_param("dom0_mem", parse_dom0_mem);