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
Makefile
dmxdev.c
dvb_ca_en50221.c media: fix incorrect kernel doc usages 2021-03-11 11:59:44 +01:00
dvb_demux.c
dvb_frontend.c media: dvb_frontend: warn if frontend driver has API issues 2021-03-22 16:38:51 +01:00
dvb_math.c
dvb_net.c
dvb_ringbuffer.c
dvb_vb2.c
dvbdev.c media: dvbdev: Fix memory leak in dvb_media_device_free() 2021-03-22 23:36:39 +01:00