xen: fix boolean parameter handling
authorJuergen Gross <jgross@suse.com>
Mon, 28 Aug 2017 14:49:30 +0000 (16:49 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 28 Aug 2017 15:44:18 +0000 (16:44 +0100)
commit94dfb8bf8d0dc3f5cf19c3459dc33a1906aa1bfd
tree2a3f1ab8f20117138f2c3a773d0efcc4d1844496
parent650310c51316c0c967d34a37022d8bda0b1133ea
xen: fix boolean parameter handling

Commit 63e8a1e5ffa7a7fdbde887805f673fea7e8d2e94 ("xen: check parameter
validity when parsing command line") introduced a bug for the case
when a boolean parameter was specified by its keyword only (no value).
It would set just the wrong boolean value for that parameter.

Reported-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Tested-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/common/kernel.c