summaryrefslogtreecommitdiff
path: root/include/uapi/linux/ppdev.h
diff options
context:
space:
mode:
authorMitchel Humpherys <mitchelh@codeaurora.org>2014-11-17 15:38:58 -0800
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:04:17 -0700
commit75ade26d1e24e51299e3b5e9836c42234448e56c (patch)
tree011eefbb7785b6fe1eaf6dfe6903ee9815ecfb12 /include/uapi/linux/ppdev.h
parent2507a776326ad17f203f48dd21435d60132ce4a1 (diff)
ion: msm: fix cache maintenance on unmapped buffers
We currently pass a NULL device when doing cache maintenance in msm_ion_heap_buffer_zero. The dma ops that are used when a NULL device is given rely on s->dma_address being the physical address of the underlying memory. However, msm_ion_heap_buffer_zero can be called on buffers that have previously been mapped by a different DMA mapper (like the IOMMU DMA mapper) which might have set dma_address to something other than the physical address of the underlying memory. This results in us trying to do cache maintenance on some stuff that we shouldn't be. Fix this by putting the physical address for the underlying memory back into dma_address just before doing cache maintenance. Change-Id: Ic5df328f5aeac09f7c9280ced887d2ba6098eb88 Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
Diffstat (limited to 'include/uapi/linux/ppdev.h')
0 files changed, 0 insertions, 0 deletions