mirror of https://gitee.com/openkylin/linux.git
powerpc/mm/radix: Parse disable_radix commandline correctly.
kernel parameter disable_radix takes different options
disable_radix=yes|no|1|0 or just disable_radix. When using the later
format we get below error.
`Malformed early option 'disable_radix'`
Fixes: 1fd6c02207
("powerpc/mm: Add a CONFIG option to choose if radix is used by default")
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
parent
6fa504835d
commit
cec4e9b28f
|
@ -366,7 +366,7 @@ static int __init parse_disable_radix(char *p)
|
|||
{
|
||||
bool val;
|
||||
|
||||
if (strlen(p) == 0)
|
||||
if (!p)
|
||||
val = true;
|
||||
else if (kstrtobool(p, &val))
|
||||
return -EINVAL;
|
||||
|
|
Loading…
Reference in New Issue