linux/drivers/media
Wei Yongjun fb0a00fb08 dibusb: fix possible memory leak in dibusb_rc_query()
commit 1f5ecaf985 upstream.

'buf' is malloced in dibusb_rc_query() and should be freed before
leaving from the error handling cases, otherwise it will cause
memory leak.

Fixes: ff1c123545 ("[media] dibusb: handle error code on RC query")

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2017-01-12 11:39:20 +01:00
..
common [media] v4l2-tpg-core: drop SYCC, use higher precision 601 conversion matrix 2016-08-24 08:36:11 -03:00
dvb-core [media] get rid of a number of problems at the cross references 2016-09-22 10:00:23 -03:00
dvb-frontends mn88473: fix chip id check on probe 2017-01-09 08:32:23 +01:00
firewire [media] dvb: modify core to implement interfaces/entities at MC new gen 2016-01-11 12:18:52 -02:00
i2c v4l: tvp5150: Add missing break in set control handler 2017-01-09 08:32:24 +01:00
mmc [media] siano: register media controller earlier 2015-02-26 09:10:39 -03:00
pci media: solo6x10: fix lockup by avoiding delayed register write 2017-01-09 08:32:24 +01:00
platform s5p-mfc: fix failure path of s5p_mfc_alloc_memdev() 2017-01-09 08:32:24 +01:00
radio [media] constify i2c_algorithm structures 2016-09-19 16:27:02 -03:00
rc media updates for v4.9-rc1 2016-10-11 13:22:22 -07:00
spi [media] gs1662: make checkpatch happy 2016-09-19 14:39:49 -03:00
tuners xc2028: Fix use-after-free bug properly 2016-11-23 21:04:26 -02:00
usb dibusb: fix possible memory leak in dibusb_rc_query() 2017-01-12 11:39:20 +01:00
v4l2-core Merge branch 'gup_flag-cleanups' 2016-10-19 08:39:47 -07:00
cec-edid.c [media] cec-edid: check for IEEE identifier 2016-08-22 14:04:51 -03:00
Kconfig [media] media Kconfig: improve the spi integration 2016-09-19 14:37:05 -03:00
Makefile [media] Add GS1662 driver, a video serializer 2016-09-19 14:36:24 -03:00
media-device.c [media] media: Add flags to tell whether to take graph mutex for an IOCTL 2016-09-22 10:28:40 -03:00
media-devnode.c [media] media: fix media devnode ioctl/syscall and unregister race 2016-06-15 17:59:28 -03:00
media-entity.c [media] media: Move media_device link_notify operation to an ops structure 2016-09-09 11:20:09 -03:00