linux-uconsole/drivers/media/usb
Markus Elfring 767686f5eb media: em28xx: Fix exception handling in em28xx_alloc_urbs()
[ Upstream commit ecbce48f1f ]

A null pointer would be passed to a call of the function "kfree" directly
after a call of the function "kcalloc" failed at one place.
Pass the data structure member "urb" instead for which memory
was allocated before (so that this resource will be properly cleaned up).

This issue was detected by using the Coccinelle software.

Fixes: d571b592c6 ("media: em28xx: don't use coherent buffer for DMA transfers")
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-27 14:51:07 +01:00
..
airspy
as102 media: fix usage of whitespaces and on indentation 2018-01-04 13:12:01 -05:00
au0828 media: au0828: Fix incorrect error messages 2019-11-20 18:47:16 +01:00
b2c2 media: flexcop-usb: ensure -EIO is returned on error condition 2020-01-09 10:19:05 +01:00
cpia2 media: cpia2_usb: fix memory leaks 2019-10-05 13:09:49 +02:00
cx231xx media: cx231xx: fix potential sign-extension overflow on large shift 2019-11-24 08:20:48 +01:00
dvb-usb media: usb: fix memory leak in af9005_identify_state 2020-01-09 10:19:06 +01:00
dvb-usb-v2 media: dvbsky: Avoid leaking dvb frontend 2019-05-31 06:46:32 -07:00
em28xx media: em28xx: Fix exception handling in em28xx_alloc_urbs() 2020-01-27 14:51:07 +01:00
go7007 media: go7007: avoid clang frame overflow warning with KASAN 2019-05-31 06:46:33 -07:00
gspca media: sn9c20x: Add MSI MS-1039 laptop to flip_dmi_table 2019-10-05 13:10:05 +02:00
hackrf media: usb: hackrf: Replace GFP_ATOMIC with GFP_KERNEL 2018-08-02 19:16:17 -04:00
hdpvr media: hdpvr: add terminating 0 at end of string 2019-10-05 13:09:44 +02:00
msi2500
pulse8-cec media: pulse8-cec: fix lost cec_transmit_attempt_done() call 2020-01-09 10:19:00 +01:00
pvrusb2 media: pvrusb2: Fix oops on tear-down when radio support is not present 2019-12-31 16:35:55 +01:00
pwc media: replace all <spaces><tab> occurrences 2018-01-04 13:15:05 -05:00
rainshadow-cec
s2255 media: s2255drv: fix a casting warning 2018-03-23 06:56:55 -04:00
siano media: smsusb: better handle optional alignment 2019-06-09 09:17:12 +02:00
stk1160 media: stk1160: Set the vb2_queue lock before calling vb2_queue_init 2018-07-04 08:03:43 -04:00
stkwebcam media: stkwebcam: Bugfix for wrong return values 2019-12-13 08:52:28 +01:00
tm6000 media: tm6000: double free if usb disconnect while streaming 2019-09-21 07:16:42 +02:00
ttusb-budget media updates for v4.16-rc1 2018-02-06 11:27:48 -08:00
ttusb-dec media: ttusb-dec: Fix info-leak in ttusb_dec_send_command() 2019-10-05 13:09:58 +02:00
usbtv media: usbtv: use irqsave() in USB's complete callback 2018-08-02 14:17:15 -04:00
usbvision media: usbvision: Fix races among open, close, and disconnect 2019-12-01 09:17:39 +01:00
uvc media: uvcvideo: Abstract streaming object lifetime 2019-12-13 08:52:27 +01:00
zr364xx media: usb:zr364xx:Fix KASAN:null-ptr-deref Read in zr364xx_vidioc_querycap 2020-01-17 19:46:57 +01:00
Kconfig
Makefile