linux/drivers/media/usb
Alexey Khoroshilov 090c65b694 [media] usbvision-video: fix memory leak of alt_max_pkt_size
1. usbvision->alt_max_pkt_size is not deallocated anywhere.
2. if allocation of usbvision->alt_max_pkt_size fails,
there is no proper deallocation of already acquired resources.
The patch adds kfree(usbvision->alt_max_pkt_size) to
usbvision_release() as soon as other deallocations happen there.
It calls usbvision_release() if allocation of
usbvision->alt_max_pkt_size fails as soon as usbvision_release()
is safe to work with incompletely initialized usbvision structure.
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 <mchehab@redhat.com>
2013-06-21 11:29:24 -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: the reg->size field wasn't filled in 2013-06-17 08:55:19 -03:00
dvb-usb [media] stb0899: remove commented value from IQ_SWAP_ON/OFF usages 2013-05-21 08:54:37 -03:00
dvb-usb-v2 [media] mxl111sf: don't redefine pr_err/info/debug 2013-06-19 11:08:44 -03:00
em28xx [media] em28xx: remove GPIO register caching 2013-06-19 11:43:20 -03:00
gspca Merge branch 'linus' into patchwork 2013-06-20 05:19:09 -03:00
hdpvr [media] hdpvr: improve error handling 2013-06-13 11:35:47 -03:00
pvrusb2 [media] pvrusb2: Remove unused variable 2013-06-21 11:21:17 -03:00
pwc [media] pwc: Fix comment wrt lock ordering 2013-05-07 09:35:07 -03:00
s2255 [media] v4l2: pass std by value to the write-only s_std ioctl 2013-03-24 06:47:00 -03:00
siano [media] siano: remove the remaining CamelCase compliants 2013-03-21 10:03:45 -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] v4l2: remove g_chip_ident from bridge drivers where it is easy to do so 2013-06-17 08:36:35 -03:00
stkwebcam [media] stk-webcam: implement support for count == 0 when calling REQBUFS 2013-03-05 14:44:17 -03:00
tlg2300 [media] v4l2: pass std by value to the write-only s_std ioctl 2013-03-24 06:47:00 -03:00
tm6000 [media] tm6000: remove deprecated current_norm 2013-06-17 09:35:27 -03:00
ttusb-budget [media] demux.h: Remove duplicated enum 2013-04-08 06:53:15 -03:00
ttusb-dec [media] demux.h: Remove duplicated enum 2013-04-08 06:53:15 -03:00
usbvision [media] usbvision-video: fix memory leak of alt_max_pkt_size 2013-06-21 11:29:24 -03:00
uvc [media] uvcvideo: Fix open/close race condition 2013-06-08 19:51:16 -03:00
zr364xx [media] v4l: Convert drivers to use monotonic timestamps 2012-12-21 10:56:43 -02:00
Kconfig Properly handle tristate dependencies on USB/PCI menus 2013-06-17 11:40:28 -03:00
Makefile