]> git.hungrycats.org Git - linux/commit
staging: android: ion: Set the length of the DMA sg entries in buffer
authorLiviu Dudau <Liviu.Dudau@arm.com>
Thu, 21 Jan 2016 11:57:47 +0000 (11:57 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Apr 2016 06:45:27 +0000 (15:45 +0900)
commit9378a3b5d6d6930b218a6e6cefcbe4014556bf02
tree6540bedeea2660ed10b6f3c0780af6730fa79992
parent383b59f1349536dc242026dc4edc818547ddcdd2
staging: android: ion: Set the length of the DMA sg entries in buffer

commit 70bc916b2c80913753fb188d4daee50a64d21ba0 upstream.

ion_buffer_create() will allocate a buffer and then create a DMA
mapping for it, but it forgot to set the length of the page entries.

Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
Signed-off-by: Jon Medhurst <tixy@linaro.org>
Acked-by: Laura Abbott <labbott@redhat.com>
Cc: Shawn Guo <shawnguo@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion.c