WSL2-Linux-Kernel/drivers/media/dvb-core
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
..
Kconfig media: Kconfig: move DVB-specific options to dvb-core/Kconfig 2020-04-14 10:29:05 +02:00
Makefile media: dvb: fix DVB_MMAP symbol name 2018-02-23 05:20:01 -05:00
dmxdev.c media: dvb-core: fix epoll() by calling poll_wait first 2019-02-18 14:48:37 -05:00
dvb_ca_en50221.c media: fix incorrect kernel doc usages 2021-03-11 11:59:44 +01:00
dvb_demux.c media: dvb-core: Fix receiving invalid EIT-sections 2020-01-08 11:46:34 +01:00
dvb_frontend.c media: dvb_frontend: warn if frontend driver has API issues 2021-03-22 16:38:51 +01:00
dvb_math.c media: move dvb kAPI headers to include/media 2017-12-28 13:16:01 -05:00
dvb_net.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
dvb_ringbuffer.c docs: Fix some broken references 2018-06-15 18:10:01 -03:00
dvb_vb2.c media: media/v4l2: remove V4L2_FLAG_MEMORY_NON_CONSISTENT flag 2020-09-14 15:28:06 +02:00
dvbdev.c media: dvbdev: Fix memory leak in dvb_media_device_free() 2021-03-22 23:36:39 +01:00