Re: [Xen-devel] [PATCH] xen: fix parse_bool() with empty string

2017-08-25 Thread Andrew Cooper
On 25/08/17 17:15, Wei Liu wrote: > On Fri, Aug 25, 2017 at 06:11:25PM +0200, Juergen Gross wrote: >> parse_bool() should return -1 in case it is called with an empty >> string. In order to allow boolean parameters in the cmdline without >> specifying a value this case must be handled in

Re: [Xen-devel] [PATCH] xen: fix parse_bool() with empty string

2017-08-25 Thread Wei Liu
On Fri, Aug 25, 2017 at 06:11:25PM +0200, Juergen Gross wrote: > parse_bool() should return -1 in case it is called with an empty > string. In order to allow boolean parameters in the cmdline without > specifying a value this case must be handled in _cmdline_parse() by > always passing a value

[Xen-devel] [PATCH] xen: fix parse_bool() with empty string

2017-08-25 Thread Juergen Gross
parse_bool() should return -1 in case it is called with an empty string. In order to allow boolean parameters in the cmdline without specifying a value this case must be handled in _cmdline_parse() by always passing a value string. This fixes commit 532dec8e31174ed450adfd36a4b0b41dec27010d ("xen: