aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/numa/numa.c
diff options
context:
space:
mode:
authorVasily Gorbik <gor@linux.ibm.com>2019-08-16 15:49:49 +0200
committerVasily Gorbik <gor@linux.ibm.com>2019-08-26 12:51:17 +0200
commit915ef7bda76466a5542a76694c08709895383f1c (patch)
treec8b6ddc0998035be3f36d4969abdce5d62321182 /arch/s390/numa/numa.c
parents390/paes: Prepare paes functions for large key blobs (diff)
downloadlinux-dev-915ef7bda76466a5542a76694c08709895383f1c.tar.xz
linux-dev-915ef7bda76466a5542a76694c08709895383f1c.zip
s390/numa: correct early_param handling
When command line options are used without specifying values (e.g. "emu_size" instead of "emu_size="), the value is NULL. Check that before performing string operations and further processing. Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to '')
-rw-r--r--arch/s390/numa/numa.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/s390/numa/numa.c b/arch/s390/numa/numa.c
index 8eb9e9743f5d..d2910fa834c8 100644
--- a/arch/s390/numa/numa.c
+++ b/arch/s390/numa/numa.c
@@ -158,6 +158,8 @@ early_param("numa_debug", parse_debug);
static int __init parse_numa(char *parm)
{
+ if (!parm)
+ return 1;
if (strcmp(parm, numa_mode_plain.name) == 0)
mode = &numa_mode_plain;
#ifdef CONFIG_NUMA_EMU