]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/4.16.4/media-atomisp_fops.c-disable-atomisp_compat_ioctl32.patch
drop drm patch
[thirdparty/kernel/stable-queue.git] / releases / 4.16.4 / media-atomisp_fops.c-disable-atomisp_compat_ioctl32.patch
1 From 57e6b6f2303e596a6493078b53be14b789e7b79f Mon Sep 17 00:00:00 2001
2 From: Hans Verkuil <hverkuil@xs4all.nl>
3 Date: Sun, 25 Feb 2018 06:55:32 -0500
4 Subject: media: atomisp_fops.c: disable atomisp_compat_ioctl32
5
6 From: Hans Verkuil <hverkuil@xs4all.nl>
7
8 commit 57e6b6f2303e596a6493078b53be14b789e7b79f upstream.
9
10 The atomisp_compat_ioctl32() code has problems. This patch disables the
11 compat_ioctl32 support until those issues have been fixed.
12
13 Contact Sakari or me for more details.
14
15 Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
16 Cc: <stable@vger.kernel.org> # for v4.12 and up
17 Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
18 Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
19 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
20
21 ---
22 drivers/staging/media/atomisp/pci/atomisp2/atomisp_fops.c | 6 ++++++
23 1 file changed, 6 insertions(+)
24
25 --- a/drivers/staging/media/atomisp/pci/atomisp2/atomisp_fops.c
26 +++ b/drivers/staging/media/atomisp/pci/atomisp2/atomisp_fops.c
27 @@ -1279,7 +1279,10 @@ const struct v4l2_file_operations atomis
28 .mmap = atomisp_mmap,
29 .unlocked_ioctl = video_ioctl2,
30 #ifdef CONFIG_COMPAT
31 + /*
32 + * There are problems with this code. Disable this for now.
33 .compat_ioctl32 = atomisp_compat_ioctl32,
34 + */
35 #endif
36 .poll = atomisp_poll,
37 };
38 @@ -1291,7 +1294,10 @@ const struct v4l2_file_operations atomis
39 .mmap = atomisp_file_mmap,
40 .unlocked_ioctl = video_ioctl2,
41 #ifdef CONFIG_COMPAT
42 + /*
43 + * There are problems with this code. Disable this for now.
44 .compat_ioctl32 = atomisp_compat_ioctl32,
45 + */
46 #endif
47 .poll = atomisp_poll,
48 };