Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

s390/vmcp: correct early_param handling

Check "p" is not NULL before passing it to memparse, which doesn't
handle that case explicitly.

Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>

+2
+2
drivers/s390/char/vmcp.c
··· 43 43 44 44 static int __init early_parse_vmcp_cma(char *p) 45 45 { 46 + if (!p) 47 + return 1; 46 48 vmcp_cma_size = ALIGN(memparse(p, NULL), PAGE_SIZE); 47 49 return 0; 48 50 }