linux/drivers/media/usb
Ezequiel Garcia 85ac1a1772 [media] media: stk1160: Avoid stack-allocated buffer for control URBs
Currently stk1160_read_reg() uses a stack-allocated char to get the
read control value. This is wrong because usb_control_msg() requires
a kmalloc-ed buffer.

This commit fixes such issue by kmalloc'ating a 1-byte buffer to receive
the read value.

While here, let's remove the urb_buf array which was meant for a similar
purpose, but never really used.

Cc: Alan Stern <stern@rowland.harvard.edu>
Reported-by: Sander Eikelenboom <linux@eikelenboom.it>
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Cc: stable@vger.kernel.org      # for v3.7 and up
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2014-05-24 17:12:11 -03:00
..
au0828 [media] v4l: subdev: Move [gs]_std operation to video ops 2014-05-24 17:11:26 -03:00
b2c2
cpia2
cx231xx [media] v4l: subdev: Move [gs]_std operation to video ops 2014-05-24 17:11:26 -03:00
dvb-usb [media] technisat-usb2: rename led enums to be specific to driver 2014-05-23 19:47:43 -03:00
dvb-usb-v2 [media] rtl28xxu: add [1b80:d3af] Sveon STV27 2014-05-13 20:25:47 -03:00
em28xx [media] v4l: subdev: Move [gs]_std operation to video ops 2014-05-24 17:11:26 -03:00
gspca [media] media:gspca:dtcs033 Clean sparse check warnings on endianess 2014-04-23 10:07:52 -03:00
hdpvr [media] hdpvr: Fix memory leak in debug 2014-02-04 06:43:53 -02:00
pvrusb2 [media] v4l: subdev: Move [gs]_std operation to video ops 2014-05-24 17:11:26 -03:00
pwc [media] vb2: stop_streaming should return void 2014-04-23 10:12:51 -03:00
s2255 [media] s2255drv: fix memory leak s2255_probe() 2014-05-23 12:19:42 -03:00
siano [media] Siano: smsusb - Add a device id for PX-S1UD 2014-03-11 12:12:53 -03:00
stk1160 [media] media: stk1160: Avoid stack-allocated buffer for control URBs 2014-05-24 17:12:11 -03:00
stkwebcam
tlg2300 [media] Convert to snd_card_new() with a device pointer 2014-02-14 08:14:09 +01:00
tm6000 [media] v4l: subdev: Move [gs]_std operation to video ops 2014-05-24 17:11:26 -03:00
ttusb-budget
ttusb-dec
usbtv [media] vb2: stop_streaming should return void 2014-04-23 10:12:51 -03:00
usbvision [media] v4l: subdev: Move [gs]_std operation to video ops 2014-05-24 17:11:26 -03:00
uvc [media] uvcvideo: Fix clock param realtime setting 2014-05-23 11:27:37 -03:00
zr364xx
Kconfig [media] sn9c102: prepare for removal by moving it to staging 2013-12-20 13:41:36 -02:00
Makefile [media] sn9c102: prepare for removal by moving it to staging 2013-12-20 13:41:36 -02:00