[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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 _cmdline_parse() by
>> always passing a value string.
>>
>> This fixes commit 532dec8e31174ed450adfd36a4b0b41dec27010d ("xen:
>> add an optional string end parameter to parse_bool()")
>>
>> Signed-off-by: Juergen Gross <jgross@xxxxxxxx>
> Acked-by: Wei Liu <wei.liu2@xxxxxxxxxx>

I've exercised this with some of the more weird callers of parse_bool(),
and everything appears to be in order.  Tested, Reviewed and committed,
thanks.

~Andrew

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.