From: Greg Kroah-Hartman Date: Sun, 16 Apr 2017 08:01:20 +0000 (+0200) Subject: 4.9-stable patches X-Git-Tag: v4.10.11~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=185660450e50c570276d663a513f46cdce74d39a;p=thirdparty%2Fkernel%2Fstable-queue.git 4.9-stable patches added patches: dma-buf-add-support-for-compat-ioctl.patch --- 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 index 00000000000..a7c68d270d4 --- /dev/null +++ b/queue-4.9/dma-buf-add-support-for-compat-ioctl.patch @@ -0,0 +1,40 @@ +From 888022c0473d079bff9b47fb50434b1f20f8f37f Mon Sep 17 00:00:00 2001 +From: Marek Szyprowski +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 + +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 +Reviewed-by: Christian König +Acked-by: Daniel Vetter +Signed-off-by: Sumit Semwal +Link: http://patchwork.freedesktop.org/patch/msgid/1487683261-2655-1-git-send-email-m.szyprowski@samsung.com +Signed-off-by: Greg Kroah-Hartman + +--- + 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 + }; + + /* diff --git a/queue-4.9/series b/queue-4.9/series index dd9b17994e6..954071d4302 100644 --- a/queue-4.9/series +++ b/queue-4.9/series @@ -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