Skip to content
Commit 5d11e6aa authored by Dillon Min's avatar Dillon Min Committed by Mauro Carvalho Chehab
Browse files

media: s5p-g2d: Fix a memory leak on ctx->fh.m2m_ctx



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: 91884734 ("[media] v4l: add G2D driver for s5p device family")
Signed-off-by: default avatarDillon Min <dillon.minfei@gmail.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 2b889a4a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment