TencentOS-kernel/drivers/media
Stanimir Varbanov d5c3b8e03b media: venus: vdec: Init registered list unconditionally
[ Upstream commit bc3d870e414b42d72cd386aa20a4fc3612e4feb7 ]

Presently the list initialization is done only in
dynamic-resolution-change state, which leads to list corruptions
and use-after-free. Init list_head unconditionally in
vdec_stop_capture called by vb2 stop_streaming without takeing
into account current codec state.

Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-16 16:37:15 +08:00
..
cec cec-api: prevent leaking memory through hole in structure 2021-03-16 16:34:50 +08:00
common Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
dvb-core media: dvbdev: Fix tuner->demod media controller link 2021-03-16 16:29:21 +08:00
dvb-frontends media: tda10071: fix unsigned sign extension overflow 2021-03-16 16:37:00 +08:00
firewire media: firewire: Using uninitialized values in node_probe() 2021-03-16 16:33:32 +08:00
i2c media: smiapp: Fix error handling at NVM reading 2021-03-16 16:36:34 +08:00
mc media: mc-device.c: fix memleak in media_device_register_entity 2021-03-16 16:36:31 +08:00
mmc Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
pci media: pci: ttpci: av7110: fix possible buffer overflow caused by bad DMA value in debiirq() 2021-03-16 16:34:46 +08:00
platform media: venus: vdec: Init registered list unconditionally 2021-03-16 16:37:15 +08:00
radio Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
rc media: rc: uevent sysfs file races with rc_unregister_device() 2021-03-16 16:35:41 +08:00
spi Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
tuners media: si2157: Better check for running tuner in init 2021-03-16 16:29:15 +08:00
usb media: go7007: Fix URB type for interrupt handling 2021-03-16 16:36:56 +08:00
v4l2-core Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
Kconfig Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
Makefile Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00