summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Verkuil2008-12-16 12:32:37 +0100
committerMauro Carvalho Chehab2008-12-16 19:43:59 +0100
commit3ca81a55256f38d9a8a4d5e9a6a9288ddc672e19 (patch)
tree9f95669e5569d7b26df4c20a35d387403fdcbc5d
parentV4L/DVB (9885): drivers/media Kconfig's: fix bugzilla #12204 (diff)
downloadkernel-qcow2-linux-3ca81a55256f38d9a8a4d5e9a6a9288ddc672e19.tar.gz
kernel-qcow2-linux-3ca81a55256f38d9a8a4d5e9a6a9288ddc672e19.tar.xz
kernel-qcow2-linux-3ca81a55256f38d9a8a4d5e9a6a9288ddc672e19.zip
V4L/DVB (9906): v4l2-compat: test for unlocked_ioctl as well.
The v4l_compat_ioctl32() function only tested for the presence of the ioctl op, not for unlocked_ioctl. So it would always return an error when used with drivers that use unlocked_ioctl instead of ioctl. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/video/compat_ioctl32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/compat_ioctl32.c b/drivers/media/video/compat_ioctl32.c
index e6ca4012b5f0..0ea85a05e5c0 100644
--- a/drivers/media/video/compat_ioctl32.c
+++ b/drivers/media/video/compat_ioctl32.c
@@ -831,7 +831,7 @@ long v4l_compat_ioctl32(struct file *file, unsigned int cmd, unsigned long arg)
{
int ret = -ENOIOCTLCMD;
- if (!file->f_op->ioctl)
+ if (!file->f_op->ioctl && !file->f_op->unlocked_ioctl)
return ret;
switch (cmd) {