Skip to content

Commit cec4e9b

Browse files
kvaneeshmpe
authored andcommitted
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: 1fd6c02 ("powerpc/mm: Add a CONFIG option to choose if radix is used by default") Signed-off-by: Aneesh Kumar K.V <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
1 parent 6fa5048 commit cec4e9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/powerpc/mm/init_64.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ static int __init parse_disable_radix(char *p)
366366
{
367367
bool val;
368368

369-
if (strlen(p) == 0)
369+
if (!p)
370370
val = true;
371371
else if (kstrtobool(p, &val))
372372
return -EINVAL;

0 commit comments

Comments
 (0)