linux/drivers/media/usb/dvb-usb
Anton Vasilyev 589a9f0eb7 media: dw2102: Fix use after free
dvb_usb_device_init stores parts of properties at d->props
and d->desc and uses it on dvb_usb_device_exit.
Free of properties on module probe leads to use after free.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=204597

The patch makes properties static instead of allocated on heap to prevent
memleak and use after free.
Also fixes s421_properties.devices initialization to have 2 element
instead of 6 copied from p7500_properties.

[mchehab: fix function call alignments]
Link: https://lore.kernel.org/linux-media/20190822104147.4420-1-vasilyev@ispras.ru
Signed-off-by: Anton Vasilyev <vasilyev@ispras.ru>
Fixes: 299c7007e9 ("media: dw2102: Fix memleak on sequence of probes")
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2021-12-14 15:09:14 +01:00
..
a800.c
af9005-fe.c
af9005-remote.c
af9005-script.h
af9005.c
af9005.h
az6027.c media: dvb-usb: fix ununit-value in az6027_rc_query 2021-09-30 10:07:43 +02:00
az6027.h
cinergyT2-core.c media: cinergyt2: make properties const 2021-06-08 15:53:19 +02:00
cinergyT2-fe.c
cinergyT2.h
cxusb-analog.c
cxusb.c media: dvb-usb: fix wrong definition 2021-05-23 19:21:30 +02:00
cxusb.h
dib07x0.h
dib0700.h
dib0700_core.c media: dib0700: Only touch one bit when start/stop an adapter 2021-11-19 16:24:07 +00:00
dib0700_devices.c
dibusb-common.c media: usb: dvd-usb: fix uninit-value bug in dibusb_read_eeprom_byte() 2021-10-08 13:54:43 +02:00
dibusb-mb.c
dibusb-mc-common.c
dibusb-mc.c
dibusb.h
digitv.c
digitv.h
dtt200u-fe.c
dtt200u.c
dtt200u.h
dtv5100.c media: dtv5100: fix control-request directions 2021-06-02 14:09:51 +02:00
dtv5100.h
dvb-usb-common.h
dvb-usb-dvb.c
dvb-usb-firmware.c
dvb-usb-i2c.c media: dvb-usb: Fix error handling in dvb_usb_i2c_init 2021-07-22 08:23:15 +02:00
dvb-usb-init.c media: dvb-usb: Fix error handling in dvb_usb_i2c_init 2021-07-22 08:23:15 +02:00
dvb-usb-remote.c
dvb-usb-urb.c
dvb-usb.h media: dvb-usb: avoid -Wempty-body warnings 2021-04-09 13:05:25 +02:00
dw2102.c media: dw2102: Fix use after free 2021-12-14 15:09:14 +01:00
dw2102.h
gp8psk.c
gp8psk.h
Kconfig
m920x.c media: m920x: don't use stack on USB reads 2021-12-07 11:29:58 +01:00
m920x.h
Makefile media: move ttpci-eeprom to common 2021-06-02 11:16:15 +02:00
nova-t-usb2.c media: dvb-usb: fix uninit-value in dvb_usb_adapter_dvb_init 2021-07-22 08:22:17 +02:00
opera1.c
pctv452e.c
technisat-usb2.c
ttusb2.c
ttusb2.h
umt-010.c
usb-urb.c
vp702x-fe.c
vp702x.c media: dvb-usb: fix uninit-value in vp702x_read_mac_addr 2021-07-22 08:22:45 +02:00
vp702x.h
vp7045-fe.c
vp7045.c
vp7045.h