|
@@ -166,7 +166,7 @@ static int ion_system_heap_allocate(struct ion_heap *heap,
|
|
|
max_order = info->order;
|
|
|
i++;
|
|
|
}
|
|
|
- table = kzalloc(sizeof(struct sg_table), GFP_KERNEL);
|
|
|
+ table = kmalloc(sizeof(struct sg_table), GFP_KERNEL);
|
|
|
if (!table)
|
|
|
goto err;
|
|
|
|
|
@@ -356,7 +356,7 @@ static int ion_system_contig_heap_allocate(struct ion_heap *heap,
|
|
|
for (i = len >> PAGE_SHIFT; i < (1 << order); i++)
|
|
|
__free_page(page + i);
|
|
|
|
|
|
- table = kzalloc(sizeof(struct sg_table), GFP_KERNEL);
|
|
|
+ table = kmalloc(sizeof(struct sg_table), GFP_KERNEL);
|
|
|
if (!table) {
|
|
|
ret = -ENOMEM;
|
|
|
goto out;
|