linux-stable/drivers/media/usb/em28xx
Markus Elfring ecbce48f1f media: em28xx: Fix exception handling in em28xx_alloc_urbs()
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>
2019-08-29 10:22:20 -03:00
..
em28xx-audio.c media updates for v4.20-rc1 2018-10-29 14:29:58 -07:00
em28xx-camera.c MAINTAINERS & files: Canonize the e-mails I use at files 2018-05-04 06:21:06 -04:00
em28xx-cards.c media: em28xx: modules workqueue not inited for 2nd device 2019-08-14 05:06:44 -03:00
em28xx-core.c media: em28xx: Fix exception handling in em28xx_alloc_urbs() 2019-08-29 10:22:20 -03:00
em28xx-dvb.c media: em28xx: Fix dual transport stream operation 2018-07-27 06:39:57 -04:00
em28xx-i2c.c media: usb: fix several typos 2019-03-01 09:43:27 -05:00
em28xx-input.c media: em28xx: use usb_to_input_id() rather than handrolling it 2019-05-29 12:57:37 -04:00
em28xx-reg.h media: usb: fix several typos 2019-03-01 09:43:27 -05:00
em28xx-v4l.h media: update/fix my e-mail on some places 2018-05-10 07:27:15 -04:00
em28xx-vbi.c media: em28xx: Add SPDX license tags where needed 2018-03-06 05:54:52 -05:00
em28xx-video.c media: Fix various misspellings of disconnected 2019-08-19 12:02:28 -03:00
em28xx.h media: Fix various misspellings of disconnected 2019-08-19 12:02:28 -03:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile media: prefix header search paths with $(srctree)/ 2019-05-18 11:49:56 +09:00