From: Laurent Pinchart Date: Sun, 18 Dec 2011 23:22:50 +0000 (-0300) Subject: [media] uvcvideo: Return -ENOTTY in case of unknown ioctl X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a3ec69b707718cb95317d1b783560210487c55a8;p=mv-sheeva.git [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 Reviewed-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/uvc/uvc_v4l2.c b/drivers/media/video/uvc/uvc_v4l2.c index 2ae4f880ea0..f09ee8b2ea5 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) default: uvc_trace(UVC_TRACE_IOCTL, "Unknown ioctl 0x%08x\n", cmd); - return -EINVAL; + return -ENOTTY; } return ret;