aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/dma/contiguous.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/dma/contiguous.c')
-rw-r--r--kernel/dma/contiguous.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/kernel/dma/contiguous.c b/kernel/dma/contiguous.c
index 286d82329eb0..b2a87905846d 100644
--- a/kernel/dma/contiguous.c
+++ b/kernel/dma/contiguous.c
@@ -49,7 +49,11 @@ static phys_addr_t limit_cmdline;
49 49
50static int __init early_cma(char *p) 50static int __init early_cma(char *p)
51{ 51{
52 pr_debug("%s(%s)\n", __func__, p); 52 if (!p) {
53 pr_err("Config string not provided\n");
54 return -EINVAL;
55 }
56
53 size_cmdline = memparse(p, &p); 57 size_cmdline = memparse(p, &p);
54 if (*p != '@') 58 if (*p != '@')
55 return 0; 59 return 0;