提交 a45425d8 编写于 作者: V 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: NVasily Gorbik <gor@linux.ibm.com>
上级 915ef7bd
......@@ -43,6 +43,8 @@ static struct cma *vmcp_cma;
static int __init early_parse_vmcp_cma(char *p)
{
if (!p)
return 1;
vmcp_cma_size = ALIGN(memparse(p, NULL), PAGE_SIZE);
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册