Commit a45425d8 authored by Vasily Gorbik's avatar Vasily Gorbik

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: default avatarVasily Gorbik <gor@linux.ibm.com>
parent 915ef7bd
...@@ -43,6 +43,8 @@ static struct cma *vmcp_cma; ...@@ -43,6 +43,8 @@ static struct cma *vmcp_cma;
static int __init early_parse_vmcp_cma(char *p) static int __init early_parse_vmcp_cma(char *p)
{ {
if (!p)
return 1;
vmcp_cma_size = ALIGN(memparse(p, NULL), PAGE_SIZE); vmcp_cma_size = ALIGN(memparse(p, NULL), PAGE_SIZE);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment