mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 17:59:32 +00:00
[media] exynos4-is: Clean up file handle in open() error path
The file handle is not yet added in the vfd list. So no need to call v4l2_fh_del(&ctx->fh) if it fails to create controls. Signed-off-by: Shailendra Verma <shailendra.v@samsung.com> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
0ffb94b6cc
commit
5e6df4eb25
1 changed files with 1 additions and 1 deletions
|
@ -663,8 +663,8 @@ static int fimc_m2m_open(struct file *file)
|
|||
v4l2_m2m_ctx_release(ctx->fh.m2m_ctx);
|
||||
error_c:
|
||||
fimc_ctrls_delete(ctx);
|
||||
error_fh:
|
||||
v4l2_fh_del(&ctx->fh);
|
||||
error_fh:
|
||||
v4l2_fh_exit(&ctx->fh);
|
||||
kfree(ctx);
|
||||
unlock:
|
||||
|
|
Loading…
Reference in a new issue