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 [media] drivers: media: usb: b2c2: use usb_*_coherent() instead of pci_*_consistent() in flexcop-usb.c 2013-10-17 11:26:41 -03:00
cpia2 [media] media: Change variable type to bool 2013-10-17 11:24:35 -03:00
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 [media] Add HCL T12Rg-H to STK webcam upside-down table 2013-09-26 07:15:49 -03:00
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 [media] ttusb-budget: fix memory leak in ttusb_probe() 2013-06-21 15:06:51 -03:00
ttusb-dec [media] dvb-usb: fix error handling in ttusb_dec_probe() 2013-10-03 07:33:59 -03:00
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 [media] v4l: Convert drivers to use monotonic timestamps 2012-12-21 10:56:43 -02:00
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