]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.5-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Apr 2016 01:40:23 +0000 (10:40 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Apr 2016 01:40:23 +0000 (10:40 +0900)
added patches:
staging-android-ion-set-the-length-of-the-dma-sg-entries-in-buffer.patch

queue-4.5/series
queue-4.5/staging-android-ion-set-the-length-of-the-dma-sg-entries-in-buffer.patch [new file with mode: 0644]

index 379016e38b462c7532e44528eecd6dd976abf808..5aa502505c9314b7c40f8961e229c28724309fc3 100644 (file)
@@ -121,3 +121,4 @@ alsa-usb-audio-add-a-quirk-for-plantronics-bt300.patch
 alsa-usb-audio-skip-volume-controls-triggers-hangup-on-dell-usb-dock.patch
 hid-wacom-fix-bamboo-one-oops.patch
 hid-usbhid-fix-inconsistent-reset-resume-reset-resume-behavior.patch
+staging-android-ion-set-the-length-of-the-dma-sg-entries-in-buffer.patch
diff --git a/queue-4.5/staging-android-ion-set-the-length-of-the-dma-sg-entries-in-buffer.patch b/queue-4.5/staging-android-ion-set-the-length-of-the-dma-sg-entries-in-buffer.patch
new file mode 100644 (file)
index 0000000..e47d197
--- /dev/null
@@ -0,0 +1,36 @@
+From 70bc916b2c80913753fb188d4daee50a64d21ba0 Mon Sep 17 00:00:00 2001
+From: Liviu Dudau <Liviu.Dudau@arm.com>
+Date: Thu, 21 Jan 2016 11:57:47 +0000
+Subject: staging: android: ion: Set the length of the DMA sg entries in buffer
+
+From: Liviu Dudau <Liviu.Dudau@arm.com>
+
+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 |    4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+--- a/drivers/staging/android/ion/ion.c
++++ b/drivers/staging/android/ion/ion.c
+@@ -251,8 +251,10 @@ static struct ion_buffer *ion_buffer_cre
+        * memory coming from the heaps is ready for dma, ie if it has a
+        * cached mapping that mapping has been invalidated
+        */
+-      for_each_sg(buffer->sg_table->sgl, sg, buffer->sg_table->nents, i)
++      for_each_sg(buffer->sg_table->sgl, sg, buffer->sg_table->nents, i) {
+               sg_dma_address(sg) = sg_phys(sg);
++              sg_dma_len(sg) = sg->length;
++      }
+       mutex_lock(&dev->buffer_lock);
+       ion_buffer_add(dev, buffer);
+       mutex_unlock(&dev->buffer_lock);