kernel_samsung_a53x/drivers/media/v4l2-core
Zhipeng Lu a9742ab683 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: be2fff656322 ("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-11-19 08:44:52 +01:00
..
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tuner-core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
v4l2-async.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
v4l2-clk.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
v4l2-common.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
v4l2-compat-ioctl32.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
v4l2-ctrls.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
v4l2-dev.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
v4l2-device.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
v4l2-dv-timings.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
v4l2-event.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
v4l2-fh.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
v4l2-flash-led-class.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
v4l2-fwnode.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
v4l2-h264.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
v4l2-i2c.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
v4l2-ioctl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
v4l2-jpeg.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
v4l2-mc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
v4l2-mem2mem.c media: v4l2-mem2mem: fix a memleak in v4l2_m2m_register_entity 2024-11-19 08:44:52 +01:00
v4l2-spi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
v4l2-subdev.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
v4l2-trace.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
videobuf-core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
videobuf-dma-contig.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
videobuf-dma-sg.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
videobuf-vmalloc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00