diff options
author | Hans Verkuil | 2012-04-19 17:36:03 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab | 2012-04-19 22:23:55 +0200 |
commit | d1c754a9326d95dff93bfe8004cba8574a7a20a8 (patch) | |
tree | 2fd7dedd41270de9717dd87bfb8eb285d3bcfd62 /drivers/media/video/cx18 | |
parent | [media] V4L: fix incorrect refcounting (diff) | |
download | kernel-qcow2-linux-d1c754a9326d95dff93bfe8004cba8574a7a20a8.tar.gz kernel-qcow2-linux-d1c754a9326d95dff93bfe8004cba8574a7a20a8.tar.xz kernel-qcow2-linux-d1c754a9326d95dff93bfe8004cba8574a7a20a8.zip |
[media] V4L2: drivers implementing vidioc_default should also return -ENOTTY
If the vidioc_default implementation doesn't support the ioctl, then drivers
must return -ENOTTY instead of -EINVAL.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx18')
-rw-r--r-- | drivers/media/video/cx18/cx18-ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/cx18/cx18-ioctl.c b/drivers/media/video/cx18/cx18-ioctl.c index be49f68ddf37..35fde4e931f5 100644 --- a/drivers/media/video/cx18/cx18-ioctl.c +++ b/drivers/media/video/cx18/cx18-ioctl.c @@ -1137,7 +1137,7 @@ static long cx18_default(struct file *file, void *fh, bool valid_prio, } default: - return -EINVAL; + return -ENOTTY; } return 0; } |