Loading drivers/staging/android/ion/ion_carveout_heap.c +5 −0 Original line number Diff line number Diff line Loading @@ -64,6 +64,7 @@ static int ion_carveout_heap_allocate(struct ion_heap *heap, struct sg_table *table; phys_addr_t paddr; int ret; struct device *dev = heap->priv; table = kmalloc(sizeof(*table), GFP_KERNEL); if (!table) Loading @@ -81,6 +82,10 @@ static int ion_carveout_heap_allocate(struct ion_heap *heap, sg_set_page(table->sgl, pfn_to_page(PFN_DOWN(paddr)), size, 0); buffer->sg_table = table; if (ion_buffer_cached(buffer)) ion_pages_sync_for_device(dev, sg_page(table->sgl), buffer->size, DMA_FROM_DEVICE); return 0; err_free_table: Loading Loading
drivers/staging/android/ion/ion_carveout_heap.c +5 −0 Original line number Diff line number Diff line Loading @@ -64,6 +64,7 @@ static int ion_carveout_heap_allocate(struct ion_heap *heap, struct sg_table *table; phys_addr_t paddr; int ret; struct device *dev = heap->priv; table = kmalloc(sizeof(*table), GFP_KERNEL); if (!table) Loading @@ -81,6 +82,10 @@ static int ion_carveout_heap_allocate(struct ion_heap *heap, sg_set_page(table->sgl, pfn_to_page(PFN_DOWN(paddr)), size, 0); buffer->sg_table = table; if (ion_buffer_cached(buffer)) ion_pages_sync_for_device(dev, sg_page(table->sgl), buffer->size, DMA_FROM_DEVICE); return 0; err_free_table: Loading