mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-07 13:13:57 +08:00
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>
This commit is contained in:
parent
915ef7bda7
commit
a45425d8a5
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user