linux-uconsole/drivers/media
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
..
cec media: cec: check 'transmit_in_progress', not 'transmitting' 2020-01-09 10:19:00 +01:00
common media: videobuf2-dma-sg: Prevent size from overflowing 2019-07-26 09:14:24 +02:00
dvb-core media: don't drop front-end reference count for ->detach 2019-10-05 13:10:05 +02:00
dvb-frontends media: dvb-frontends: use ida for pll number 2019-10-05 13:09:46 +02:00
firewire media: firewire: Fix app_info parameter type in avc_ca{,_app}_info 2019-01-26 09:32:37 +01:00
i2c media: ov2659: fix unbalanced mutex_lock/unlock 2020-01-27 14:50:40 +01:00
mmc media: siano: use GFP_DMA only for smssdio 2018-05-15 08:04:42 -04:00
pci media: tw5864: Fix possible NULL pointer dereference in tw5864_handle_frame 2020-01-27 14:50:35 +01:00
platform media: atmel: atmel-isi: fix timeout value for stop streaming 2020-01-27 14:51:06 +01:00
radio media: wl128x: Fix an error code in fm_download_firmware() 2020-01-27 14:50:33 +01:00
rc media: imon: invalid dereference in imon_touch_event 2019-12-01 09:17:40 +01:00
spi media: cxd2880-spi: fix probe when dvb_attach fails 2019-12-13 08:52:23 +01:00
tuners Merge branch 'i2c/for-4.19' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux 2018-08-21 17:40:46 -07:00
usb media: em28xx: Fix exception handling in em28xx_alloc_urbs() 2020-01-27 14:51:07 +01:00
v4l2-core media: v4l2-core: fix touch support in v4l_g_fmt 2019-12-31 16:35:36 +01:00
Kconfig media: cec: Kconfig coding style issue 2018-05-09 16:26:50 -04:00
Makefile
media-device.c media: mc-device.c: don't memset __user pointer contents 2019-07-26 09:14:02 +02:00
media-devnode.c MAINTAINERS & files: Canonize the e-mails I use at files 2018-05-04 06:21:06 -04:00
media-entity.c