forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/s390/char/vmcp.c
....@@ -43,6 +43,8 @@
4343
4444 static int __init early_parse_vmcp_cma(char *p)
4545 {
46
+ if (!p)
47
+ return 1;
4648 vmcp_cma_size = ALIGN(memparse(p, NULL), PAGE_SIZE);
4749 return 0;
4850 }
....@@ -68,7 +70,7 @@
6870 * anymore the system won't work anyway.
6971 */
7072 if (order > 2)
71
- page = cma_alloc(vmcp_cma, nr_pages, 0, false);
73
+ page = cma_alloc(vmcp_cma, nr_pages, 0, GFP_KERNEL);
7274 if (page) {
7375 session->response = (char *)page_to_phys(page);
7476 session->cma_alloc = 1;