V4L/DVB: uvcvideo: Don't use stack-based buffers for USB transfers
commitb30ece53946ad2b79304ee5cfdb18b361dc3a3fc
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 18 Jun 2010 14:31:24 +0000 (18 11:31 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 2 Aug 2010 18:34:10 +0000 (2 15:34 -0300)
tree80dc24b56b1a38d03d50e8077ae275ec02391847
parent1b4e21c4f62eae6bdcb3e7bfdfc52171a24f3689
V4L/DVB: uvcvideo: Don't use stack-based buffers for USB transfers

Data buffers on the stack are not allowed for USB I/O. Use dynamically
allocated buffers instead when querying control length and control
capabilities.

The control capabilities are now also stored in the uvc_control
structure.

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
drivers/media/video/uvc/uvc_v4l2.c
drivers/media/video/uvc/uvcvideo.h