]> git.baikalelectronics.ru Git - kernel.git/commit
[media] uvcvideo: Return -ERANGE when userspace sets an unsupported menu entry
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sat, 30 Apr 2011 12:46:11 +0000 (09:46 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 20 May 2011 12:30:45 +0000 (09:30 -0300)
commitdc994d75e8053cc87dd166be9afa477aac44cdb6
tree78a74656a8978e2021a8bdd0575ae9207cea7e96
parent2866bd4a871f478ef24c378fbf7510cbb79304ea
[media] uvcvideo: Return -ERANGE when userspace sets an unsupported menu entry

Instead of passing the value down to the device and getting an error
back (or worse, crashing the firmware), return -ERANGE when the
requested menu entry is not supported.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/uvc/uvc_ctrl.c