forked from Minki/linux
090c65b694
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> |
||
---|---|---|
.. | ||
au0828 | ||
b2c2 | ||
cpia2 | ||
cx231xx | ||
dvb-usb | ||
dvb-usb-v2 | ||
em28xx | ||
gspca | ||
hdpvr | ||
pvrusb2 | ||
pwc | ||
s2255 | ||
siano | ||
sn9c102 | ||
stk1160 | ||
stkwebcam | ||
tlg2300 | ||
tm6000 | ||
ttusb-budget | ||
ttusb-dec | ||
usbvision | ||
uvc | ||
zr364xx | ||
Kconfig | ||
Makefile |