staging: android: ion: Fix dma direction for dma_sync_sg_for_cpu/device
authorSushmita Susheelendra <ssusheel@codeaurora.org>
Fri, 15 Dec 2017 20:59:13 +0000 (13:59 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Dec 2017 14:53:39 +0000 (15:53 +0100)
commitd6b246bb7a29703f53aa4c050b8b3205d749caee
tree77fe162f20c56d2c389df44dc17f41c9ebd06aae
parentf292b9b28097d8fe870336108e91bd95a14294bf
staging: android: ion: Fix dma direction for dma_sync_sg_for_cpu/device

Use the direction argument passed into begin_cpu_access
and end_cpu_access when calling the dma_sync_sg_for_cpu/device.
The actual cache primitive called depends on the direction
passed in.

Signed-off-by: Sushmita Susheelendra <ssusheel@codeaurora.org>
Cc: stable <stable@vger.kernel.org>
Acked-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion.c