linux-stable/drivers/media/platform/s5p-g2d
Dillon Min a9e5ee4c32 media: s5p-g2d: Fix a memory leak on ctx->fh.m2m_ctx
[ Upstream commit 5d11e6aad1 ]

The m2m_ctx resources was allocated by v4l2_m2m_ctx_init() in g2d_open()
should be freed from g2d_release() when it's not used.

Fix it

Fixes: 918847341a ("[media] v4l: add G2D driver for s5p device family")
Signed-off-by: Dillon Min <dillon.minfei@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-07-20 16:17:35 +02:00
..
g2d-hw.c
g2d-regs.h
g2d.c media: s5p-g2d: Fix a memory leak on ctx->fh.m2m_ctx 2021-07-20 16:17:35 +02:00
g2d.h
Makefile