TencentOS-kernel/drivers/media/pci
Daniel Niv afa0aef3cf media: media/saa7164: fix saa7164_encoder_register() memory leak bugs
[ Upstream commit c759b2970c561e3b56aa030deb13db104262adfe ]

Add a fix for the memory leak bugs that can occur when the
saa7164_encoder_register() function fails.
The function allocates memory without explicitly freeing
it when errors occur.
Add a better error handling that deallocate the unused buffers before the
function exits during a fail.

Signed-off-by: Daniel Niv <danielniv3@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-05-20 16:07:27 +08:00
..
b2c2 Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
bt8xx media: media/pci: prevent memory leak in bttv_probe 2021-03-16 16:39:14 +08:00
cobalt Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
cx18 Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
cx88 Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
cx23885 media: cx23885: add more quirks for reset DMA on some AMD IOMMU 2021-04-12 12:52:54 +08:00
cx25821 Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
ddbridge Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
dm1105 Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
dt3155 Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
intel media: ipu3-cio2: Fix mbus_code processing in cio2_subdev_set_fmt() 2021-04-12 12:52:37 +08:00
ivtv Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
mantis Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
meye Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
netup_unidvb media: netup_unidvb: Don't leak SPI master in probe error path 2021-03-16 16:43:22 +08:00
ngene Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
pluto2 Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
pt1 Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
pt3 Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
saa7134 media: media/pci: Fix memleak in empress_init 2021-04-12 12:52:18 +08:00
saa7146 media: saa7146: fix array overflow in vidioc_s_audio() 2021-03-16 16:43:00 +08:00
saa7164 media: media/saa7164: fix saa7164_encoder_register() memory leak bugs 2021-05-20 16:07:27 +08:00
smipcie media: smipcie: fix interrupt handling and IR timeout 2021-04-12 12:52:39 +08:00
solo6x10 media: solo6x10: fix missing snd_card_free in error handling case 2021-03-16 16:42:47 +08:00
sta2x11 media: drivers: media: pci: sta2x11: fix Kconfig dependency on GPIOLIB 2021-05-20 16:07:27 +08:00
ttpci media: pci: ttpci: av7110: fix possible buffer overflow caused by bad DMA value in debiirq() 2021-03-16 16:34:46 +08:00
tw68 Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
tw686x Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
tw5864 media: tw5864: check status of tw5864_frameinterval_get 2021-03-16 16:39:44 +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