|
@@ -127,7 +127,7 @@ static int __init cma_activate_area(struct cma *cma)
|
|
* to be in the same zone.
|
|
* to be in the same zone.
|
|
*/
|
|
*/
|
|
if (page_zone(pfn_to_page(pfn)) != zone)
|
|
if (page_zone(pfn_to_page(pfn)) != zone)
|
|
- goto err;
|
|
|
|
|
|
+ goto not_in_zone;
|
|
}
|
|
}
|
|
init_cma_reserved_pageblock(pfn_to_page(base_pfn));
|
|
init_cma_reserved_pageblock(pfn_to_page(base_pfn));
|
|
} while (--i);
|
|
} while (--i);
|
|
@@ -141,7 +141,8 @@ static int __init cma_activate_area(struct cma *cma)
|
|
|
|
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
-err:
|
|
|
|
|
|
+not_in_zone:
|
|
|
|
+ pr_err("CMA area %s could not be activated\n", cma->name);
|
|
kfree(cma->bitmap);
|
|
kfree(cma->bitmap);
|
|
cma->count = 0;
|
|
cma->count = 0;
|
|
return -EINVAL;
|
|
return -EINVAL;
|