]> git.baikalelectronics.ru Git - kernel.git/commit
[media] uvcvideo: Return -ENOTTY in case of unknown ioctl
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sun, 18 Dec 2011 23:22:50 +0000 (20:22 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 19 Mar 2012 17:06:27 +0000 (14:06 -0300)
commit8a2c707ca6e23ce8838dca87171c500fcd262eac
tree5114ddefbcf13174c00e04248b09d5db42384568
parent44cf3b99d7592cf8e4f266a2c5f54a13aab2f2c5
[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>
drivers/media/video/uvc/uvc_v4l2.c