From: Aneesh Kumar K.V Date: Fri, 30 Mar 2018 12:09:01 +0000 (+0530) Subject: powerpc/mm/radix: Parse disable_radix commandline correctly. X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=cec4e9b28ffbcb9ce04b9e33946c505e5ad7a295;p=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: 1fd6c0220710 ("powerpc/mm: Add a CONFIG option to choose if radix is used by default") Signed-off-by: Aneesh Kumar K.V Signed-off-by: Michael Ellerman --- diff --git a/arch/powerpc/mm/init_64.c b/arch/powerpc/mm/init_64.c index 63470b06c5029..51ce091914f97 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) { bool val; - if (strlen(p) == 0) + if (!p) val = true; else if (kstrtobool(p, &val)) return -EINVAL;