diff options
author | Colin Cross <ccross@android.com> | 2013-11-12 15:28:08 -0800 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2013-11-15 16:11:11 -0800 |
commit | c1d3cea1d0b985a78a87675a07c2dab865a416f1 (patch) | |
tree | ffc00931985d2ac9280e7cfa983574ab21f401c7 /drivers/staging/android/ion/ion_system_heap.c | |
parent | 51e3580bf9da57da9c860330293b73b0dbb296e0 (diff) |
ion: convert sg_dma_len(sg) to sg->length
ion is always dealing with the allocation and not the mapping,
so it should always be using sg->length and not sg->dma_length.
Change-Id: Id9b07f1196b2bafe04636fa1aa46dfc84d003cf0
Signed-off-by: Colin Cross <ccross@android.com>
Diffstat (limited to 'drivers/staging/android/ion/ion_system_heap.c')
-rw-r--r-- | drivers/staging/android/ion/ion_system_heap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/android/ion/ion_system_heap.c b/drivers/staging/android/ion/ion_system_heap.c index 90b2e04157c..ecae16f2109 100644 --- a/drivers/staging/android/ion/ion_system_heap.c +++ b/drivers/staging/android/ion/ion_system_heap.c @@ -209,7 +209,7 @@ void ion_system_heap_free(struct ion_buffer *buffer) for_each_sg(table->sgl, sg, table->nents, i) free_buffer_page(sys_heap, buffer, sg_page(sg), - get_order(sg_dma_len(sg))); + get_order(sg->length)); sg_free_table(table); kfree(table); } |