Merge "ion: Remove ION_HEAP_FLAG_DEFER_FREE for dynamic carveout heaps"

This commit is contained in:
qctecmdr 2020-04-08 03:42:49 -07:00 • committed by Gerrit - the friendly Code Review server
commit c8879e200b

View file

@ -301,7 +301,8 @@ __ion_carveout_heap_create(struct ion_platform_heap *heap_data,
carveout_heap->heap.ion_heap.buf_ops = msm_ion_dma_buf_ops;
carveout_heap->heap.msm_heap_ops = &msm_carveout_heap_ops;
carveout_heap->heap.ion_heap.type = ION_HEAP_TYPE_CARVEOUT;
carveout_heap->heap.ion_heap.flags = ION_HEAP_FLAG_DEFER_FREE;
if (!dynamic_heap)
carveout_heap->heap.ion_heap.flags = ION_HEAP_FLAG_DEFER_FREE;
return &carveout_heap->heap.ion_heap;
}