diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2018-03-30 08:09:01 -0400 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-04-04 02:59:36 -0400 |
commit | cec4e9b28ffbcb9ce04b9e33946c505e5ad7a295 (patch) | |
tree | 0550187fd81e52f70f50148e2f57263c66299ac7 | |
parent | 6fa504835d6969144b2bd3699684dd447c789ba2 (diff) |
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: 1fd6c0220710 ("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>
-rw-r--r-- | arch/powerpc/mm/init_64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/mm/init_64.c b/arch/powerpc/mm/init_64.c index 63470b06c502..51ce091914f9 100644 --- a/arch/powerpc/mm/init_64.c +++ b/arch/powerpc/mm/init_64.c | |||
@@ -366,7 +366,7 @@ static int __init parse_disable_radix(char *p) | |||
366 | { | 366 | { |
367 | bool val; | 367 | bool val; |
368 | 368 | ||
369 | if (strlen(p) == 0) | 369 | if (!p) |
370 | val = true; | 370 | val = true; |
371 | else if (kstrtobool(p, &val)) | 371 | else if (kstrtobool(p, &val)) |
372 | return -EINVAL; | 372 | return -EINVAL; |