linux/drivers/media/usb
Alexey Khoroshilov 256d013a9b [media] cx231xx: fix double free and leaks on failure path in cx231xx_usb_probe()
There are numerous issues in error handling code of cx231xx initialization.
Double free (when cx231xx_init_dev() calls kfree(dev) via cx231xx_release_resources()
and then cx231xx_usb_probe() does the same) and memory leaks
(e.g. usb_get_dev() before (ifnum != 1) check in cx231xx_usb_probe())
are just a few of them.
The patch fixes the issues in cx231xx_usb_probe() and cx231xx_init_dev()
by moving usb_get_dev(interface_to_usbdev(interface)) below in code and
implementing proper error handling.
Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
2013-10-17 06:05:28 -03:00
..
au0828 [media] au0828: set reg->size 2013-06-17 08:55:00 -03:00
b2c2
cpia2 [media] v4l: Tell user space we're using monotonic timestamps 2012-12-21 11:20:51 -02:00
cx231xx [media] cx231xx: fix double free and leaks on failure path in cx231xx_usb_probe() 2013-10-17 06:05:28 -03:00
dvb-usb [media] az6027: fix sparse warnings 2013-10-17 05:55:03 -03:00
dvb-usb-v2 [media] dvb_usb_v2: get rid of deferred probe 2013-08-18 07:55:06 -03:00
em28xx [media] em28xx: MaxMedia UB425-TC change demod settings 2013-10-15 12:47:56 -03:00
gspca [media] gscpa_ov534_9: Add support for ov3610 sensor 2013-10-15 12:49:51 -03:00
hdpvr [media] hdpvr: fix sparse warnings 2013-10-15 12:54:20 -03:00
pvrusb2 [media] pvrusb2: fix sparse warning 2013-10-15 12:54:38 -03:00
pwc [media] pwc: Fix comment wrt lock ordering 2013-05-07 09:35:07 -03:00
s2255 [media] S2255: Removal of unnecessary videobuf_queue_is_busy 2013-08-01 14:55:17 -03:00
siano [media] siano: Use the default firmware for Stellar 2013-10-14 06:41:10 -03:00
sn9c102 [media] sn9c102_core: add v4l2_device and replace parent with v4l2_dev 2013-06-21 11:03:18 -03:00
stk1160 [media] stk1160: Build as a module if SND is m and audio support is selected 2013-08-01 14:55:25 -03:00
stkwebcam [media] Add HCL T12Rg-H to STK webcam upside-down table 2013-09-26 07:15:49 -03:00
tlg2300 [media] tlg2300: fix sparse warning 2013-10-15 13:00:38 -03:00
tm6000 [media] tm6000: remove deprecated current_norm 2013-06-17 09:35:27 -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] usbtv: Throw corrupted frames away 2013-09-03 09:24:19 -03:00
usbvision [media] usbvision-video: fix memory leak of alt_max_pkt_size 2013-06-21 11:29:24 -03:00
uvc [media] uvc: Depend on VIDEO_V4L2 2013-06-24 22:54:40 -03:00
zr364xx [media] v4l: Convert drivers to use monotonic timestamps 2012-12-21 10:56:43 -02:00
Kconfig [media] usbtv: Add driver for Fushicai USBTV007 video frame grabber 2013-06-21 11:32:35 -03:00
Makefile [media] usbtv: Add driver for Fushicai USBTV007 video frame grabber 2013-06-21 11:32:35 -03:00