linux-uconsole/drivers/media
Navid Emamdoost d933de8115 media: usb: fix memory leak in af9005_identify_state
commit 2289adbfa5 upstream.

In af9005_identify_state when returning -EIO the allocated buffer should
be released. Replace the "return -EIO" with assignment into ret and move
deb_info() under a check.

Fixes: af4e067e1d ("V4L/DVB (5625): Add support for the AF9005 demodulator from Afatech")
Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-01-09 10:19:06 +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: smiapp: Register sensor after enabling runtime PM on the device 2019-12-31 16:35:25 +01:00
mmc media: siano: use GFP_DMA only for smssdio 2018-05-15 08:04:42 -04:00
pci media: cx88: Fix some error handling path in 'cx8800_initdev()' 2019-12-31 16:35:02 +01:00
platform media: rcar_drif: fix a memory disclosure 2019-12-31 16:35:36 +01:00
radio media: si470x-i2c: add missed operations in remove 2019-12-31 16:35:57 +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: usb: fix memory leak in af9005_identify_state 2020-01-09 10:19:06 +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 media: media.h: reorganize header to make it easier to understand 2018-02-26 10:14:46 -05:00