summaryrefslogtreecommitdiffstats
path: root/drivers/staging/android/ion/ion_system_heap.c
diff options
context:
space:
mode:
authorColin Cross2013-12-13 23:25:02 +0100
committerGreg Kroah-Hartman2013-12-14 17:57:18 +0100
commit06e0dcaeb4fd72a010a1f5ad0c03abd8e0a58ef9 (patch)
treeef4a050814ec6bc09a77c1d532bf572b37660ddd /drivers/staging/android/ion/ion_system_heap.c
parention: fix dma APIs (diff)
downloadkernel-qcow2-linux-06e0dcaeb4fd72a010a1f5ad0c03abd8e0a58ef9.tar.gz
kernel-qcow2-linux-06e0dcaeb4fd72a010a1f5ad0c03abd8e0a58ef9.tar.xz
kernel-qcow2-linux-06e0dcaeb4fd72a010a1f5ad0c03abd8e0a58ef9.zip
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. Signed-off-by: Colin Cross <ccross@android.com> Signed-off-by: John Stultz <john.stultz@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/android/ion/ion_system_heap.c')
-rw-r--r--drivers/staging/android/ion/ion_system_heap.c2
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 792cade3e404..967eedc3af84 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);
}