linux/drivers/media
Peilin Ye bf9a40ae8d media: dvbdev: Fix memory leak in dvb_media_device_free()
dvb_media_device_free() is leaking memory. Free `dvbdev->adapter->conn`
before setting it to NULL, as documented in include/media/media-device.h:
"The media_entity instance itself must be freed explicitly by the driver
if required."

Link: https://syzkaller.appspot.com/bug?id=9bbe4b842c98f0ed05c5eed77a226e9de33bf298

Link: https://lore.kernel.org/linux-media/20201211083039.521617-1-yepeilin.cs@gmail.com
Cc: stable@vger.kernel.org
Fixes: 0230d60e46 ("[media] dvbdev: Add RF connector if needed")
Reported-by: syzbot+7f09440acc069a0d38ac@syzkaller.appspotmail.com
Signed-off-by: Peilin Ye <yepeilin.cs@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2021-03-22 23:36:39 +01:00
..
cec media: cec/core/cec-notifier: use IS_REACHABLE(CONFIG_I2C) 2021-03-22 10:24:44 +01:00
common media: videobuf2: Exit promptly if size = 0 2021-03-22 13:03:24 +01:00
dvb-core media: dvbdev: Fix memory leak in dvb_media_device_free() 2021-03-22 23:36:39 +01:00
dvb-frontends media: dvb-frontends: lgdt3306a.c: remove dead code 2021-03-22 17:15:53 +01:00
firewire media: firewire: fix memory leak 2020-09-27 11:29:45 +02:00
i2c media: adv7604: writing a one-block EDID failed 2021-03-22 13:05:55 +01:00
mc media: mc-device.c: change media_device_request_alloc to match media_ioctl_info 2020-08-29 08:15:23 +02:00
mmc media updates for v5.8-rc1 2020-06-03 20:59:38 -07:00
pci media: mantis: remove orphan mantis_core.c 2021-03-22 17:27:13 +01:00
platform media: coda: Remove unneeded of_match_ptr() 2021-03-22 13:03:46 +01:00
radio media: radio-si476x: rectify spelling and grammar 2021-03-22 11:58:42 +01:00
rc media: fix incorrect kernel doc usages 2021-03-11 11:59:44 +01:00
spi media: use getter/setter functions 2021-03-11 11:59:42 +01:00
test-drivers media: vidtv: remove duplicate include in vidtv_psi 2021-03-22 10:20:02 +01:00
tuners media: m88rs6000t: avoid potential out-of-bounds reads on arrays 2021-03-22 17:41:39 +01:00
usb media: media/usb: fix kernel-doc header issues 2021-03-22 12:51:50 +01:00
v4l2-core media: v4l2-mc: fix a warning message 2021-03-22 13:06:39 +01:00
Kconfig media: Correct 'so' 2021-03-22 11:52:09 +01:00
Makefile media: media/test_drivers: rename to test-drivers 2020-04-16 10:38:31 +02:00