linux-stable/drivers/media/common
Zhipeng Lu 6bf5c2fade 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:20:46 -04:00
..
b2c2
siano
v4l2-tpg media: v4l2-tpg: fix some memleaks in tpg_alloc 2024-03-26 18:20:46 -04:00
videobuf2 media: videobuf2-dma-sg: fix vmap callback 2024-01-31 16:17:01 -08:00
btcx-risc.h
cx2341x.c
cypress_firmware.c
cypress_firmware.h
Kconfig
Makefile
ttpci-eeprom.c
ttpci-eeprom.h
tveeprom.c