xen: check parameter validity when parsing command line
authorJuergen Gross <jgross@suse.com>
Mon, 28 Aug 2017 07:34:00 +0000 (09:34 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 28 Aug 2017 08:52:35 +0000 (10:52 +0200)
commit63e8a1e5ffa7a7fdbde887805f673fea7e8d2e94
tree63d268ec5337f29dbf01931effff5198f9835356
parent0ade5e761d9599e094caa546fecd63c6161e061a
xen: check parameter validity when parsing command line

Where possible check validity of parameters in _cmdline_parse() and
issue a warning message in case of an error detected.

In order to make sure a custom parameter parsing function really
returns a value (error or success), don't use a void pointer for
storing the function address, but a proper typed function pointer.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
xen/common/kernel.c
xen/include/xen/init.h
xen/include/xen/types.h