diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2011-12-18 18:22:50 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-03-19 13:06:27 -0400 |
commit | a3ec69b707718cb95317d1b783560210487c55a8 (patch) | |
tree | 5114ddefbcf13174c00e04248b09d5db42384568 /drivers | |
parent | b9d0aa6e211039548f1480a5838398d517f1c3a9 (diff) |
[media] uvcvideo: Return -ENOTTY in case of unknown ioctl
-EINVAL is the wrong error code in that case, replace it with -ENOTTY.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/uvc/uvc_v4l2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/uvc/uvc_v4l2.c b/drivers/media/video/uvc/uvc_v4l2.c index 2ae4f880ea05..f09ee8b2ea54 100644 --- a/drivers/media/video/uvc/uvc_v4l2.c +++ b/drivers/media/video/uvc/uvc_v4l2.c | |||
@@ -1012,7 +1012,7 @@ static long uvc_v4l2_do_ioctl(struct file *file, unsigned int cmd, void *arg) | |||
1012 | 1012 | ||
1013 | default: | 1013 | default: |
1014 | uvc_trace(UVC_TRACE_IOCTL, "Unknown ioctl 0x%08x\n", cmd); | 1014 | uvc_trace(UVC_TRACE_IOCTL, "Unknown ioctl 0x%08x\n", cmd); |
1015 | return -EINVAL; | 1015 | return -ENOTTY; |
1016 | } | 1016 | } |
1017 | 1017 | ||
1018 | return ret; | 1018 | return ret; |