mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-26 19:14:18 +00:00
media: v4l2-mem2mem: fix a memleak in v4l2_m2m_register_entity
[ Upstream commit8f94b49a5b] 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>
This commit is contained in:
parent
4c86c772fe
commit
90029b9c97
1 changed files with 8 additions and 2 deletions
Loading…
Add table
Add a link
Reference in a new issue