linux-stable/drivers/media/common
Zhipeng Lu 4c86c772fe media: v4l2-tpg: fix some memleaks in tpg_alloc
[ Upstream commit 8cf9c50510 ]

In tpg_alloc, resources should be deallocated in each and every
error-handling paths, since they are allocated in for statements.
Otherwise there would be memleaks because tpg_free is called only when
tpg_alloc return 0.

Fixes: 63881df94d ("[media] vivid: add the Test Pattern Generator")
Signed-off-by: Zhipeng Lu <alexious@zju.edu.cn>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-03-26 18:19:45 -04:00
..
b2c2 media: b2c2: flexcop: Convert to SPDX identifier 2021-12-07 11:29:58 +01:00
saa7146 media: common: saa7146: Avoid a leak in vmalloc_to_sg() 2023-05-25 16:21:20 +02:00
siano drivers/media/common/siano/smsendian.c : eliminate unnecessary type conversions 2023-07-19 12:57:46 +02:00
v4l2-tpg media: v4l2-tpg: fix some memleaks in tpg_alloc 2024-03-26 18:19:45 -04:00
videobuf2 media: videobuf2-dma-sg: fix vmap callback 2024-01-31 16:18:55 -08:00
Kconfig media updates for v6.3-rc1 2023-02-26 11:47:26 -08:00
Makefile media updates for v6.3-rc1 2023-02-26 11:47:26 -08:00
cx2341x.c
cypress_firmware.c
cypress_firmware.h
ttpci-eeprom.c media: move ttpci-eeprom to common 2021-06-02 11:16:15 +02:00
ttpci-eeprom.h media: move ttpci-eeprom to common 2021-06-02 11:16:15 +02:00
tveeprom.c
uvc.c usb: uvc: use v4l2_fill_fmtdesc instead of open coded format name 2023-01-31 09:40:43 +01:00