]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.9-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Apr 2017 08:01:20 +0000 (10:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Apr 2017 08:01:20 +0000 (10:01 +0200)
added patches:
dma-buf-add-support-for-compat-ioctl.patch

queue-4.9/dma-buf-add-support-for-compat-ioctl.patch [new file with mode: 0644]
queue-4.9/series

diff --git a/queue-4.9/dma-buf-add-support-for-compat-ioctl.patch b/queue-4.9/dma-buf-add-support-for-compat-ioctl.patch
new file mode 100644 (file)
index 0000000..a7c68d2
--- /dev/null
@@ -0,0 +1,40 @@
+From 888022c0473d079bff9b47fb50434b1f20f8f37f Mon Sep 17 00:00:00 2001
+From: Marek Szyprowski <m.szyprowski@samsung.com>
+Date: Tue, 21 Feb 2017 14:21:01 +0100
+Subject: dma-buf: add support for compat ioctl
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+From: Marek Szyprowski <m.szyprowski@samsung.com>
+
+commit 888022c0473d079bff9b47fb50434b1f20f8f37f upstream.
+
+Add compat ioctl support to dma-buf. This lets one to use DMA_BUF_IOCTL_SYNC
+ioctl from 32bit application on 64bit kernel. Data structures for both 32
+and 64bit modes are same, so there is no need for additional translation
+layer.
+
+Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
+Reviewed-by: Christian König <christian.koenig@amd.com>
+Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
+Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
+Link: http://patchwork.freedesktop.org/patch/msgid/1487683261-2655-1-git-send-email-m.szyprowski@samsung.com
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/dma-buf/dma-buf.c |    3 +++
+ 1 file changed, 3 insertions(+)
+
+--- a/drivers/dma-buf/dma-buf.c
++++ b/drivers/dma-buf/dma-buf.c
+@@ -303,6 +303,9 @@ static const struct file_operations dma_
+       .llseek         = dma_buf_llseek,
+       .poll           = dma_buf_poll,
+       .unlocked_ioctl = dma_buf_ioctl,
++#ifdef CONFIG_COMPAT
++      .compat_ioctl   = dma_buf_ioctl,
++#endif
+ };
+ /*
index dd9b17994e686963d784129c7ce4a33d4a9c6e75..954071d4302ed62f6e0a9908c16245190c462708 100644 (file)
@@ -28,3 +28,4 @@ usb-hub-wait-for-connection-to-be-reestablished-after-port-reset.patch
 net-mlx4_en-fix-bad-wqe-issue.patch
 net-mlx4_core-fix-racy-cq-completion-queue-free.patch
 net-mlx4_core-fix-when-to-save-some-qp-context-flags-for-dynamic-vst-to-vgt-transitions.patch
+dma-buf-add-support-for-compat-ioctl.patch