WSL2-Linux-Kernel/drivers/media/v4l2-core
Zhipeng Lu dc866b69cc media: v4l2-mem2mem: fix a memleak in v4l2_m2m_register_entity
[ Upstream commit 8f94b49a5b5d386c038e355bef6347298aabd211 ]

The entity->name (i.e. name) is allocated in v4l2_m2m_register_entity
but isn't freed in its following error-handling paths. This patch
adds such deallocation to prevent memleak of entity->name.

Fixes: be2fff6563 ("media: add helpers for memory-to-memory media controller")
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:21:26 -04:00
..
Kconfig
Makefile
tuner-core.c
v4l2-async.c
v4l2-common.c
v4l2-compat-ioctl32.c
v4l2-ctrls-api.c
v4l2-ctrls-core.c media: v4l2-ctrls: Fix off-by-one error in integer menu control check 2022-12-31 13:14:06 +01:00
v4l2-ctrls-defs.c
v4l2-ctrls-priv.h
v4l2-ctrls-request.c
v4l2-dev.c
v4l2-device.c
v4l2-dv-timings.c
v4l2-event.c
v4l2-fh.c
v4l2-flash-led-class.c
v4l2-fwnode.c media: v4l2-core: Fix a potential resource leak in v4l2_fwnode_parse_link() 2023-09-19 12:22:43 +02:00
v4l2-h264.c
v4l2-i2c.c
v4l2-ioctl.c
v4l2-jpeg.c media: v4l2-jpeg: ignore the unknown APP14 marker 2023-03-10 09:39:45 +01:00
v4l2-mc.c
v4l2-mem2mem.c media: v4l2-mem2mem: fix a memleak in v4l2_m2m_register_entity 2024-03-26 18:21:26 -04:00
v4l2-spi.c
v4l2-subdev.c
v4l2-trace.c
videobuf-core.c
videobuf-dma-contig.c media: videobuf-dma-contig: use dma_mmap_coherent 2022-12-31 13:14:11 +01:00
videobuf-dma-sg.c
videobuf-vmalloc.c