summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/exynos4-is
diff options
context:
space:
mode:
authorShailendra Verma2016-12-02 05:43:05 +0100
committerMauro Carvalho Chehab2017-01-31 12:58:42 +0100
commit5e6df4eb255af36b36f6b31b4bcece23cffefc5c (patch)
treee9a65b6ce00e49c99083f2daa5bda470f87118e9 /drivers/media/platform/exynos4-is
parent[media] cxd2820r: fix gpio null pointer dereference (diff)
downloadkernel-qcow2-linux-5e6df4eb255af36b36f6b31b4bcece23cffefc5c.tar.gz
kernel-qcow2-linux-5e6df4eb255af36b36f6b31b4bcece23cffefc5c.tar.xz
kernel-qcow2-linux-5e6df4eb255af36b36f6b31b4bcece23cffefc5c.zip
[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>
Diffstat (limited to 'drivers/media/platform/exynos4-is')
-rw-r--r--drivers/media/platform/exynos4-is/fimc-m2m.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/exynos4-is/fimc-m2m.c b/drivers/media/platform/exynos4-is/fimc-m2m.c
index 6028e4fbaed3..d8724fe9e9da 100644
--- a/drivers/media/platform/exynos4-is/fimc-m2m.c
+++ b/drivers/media/platform/exynos4-is/fimc-m2m.c
@@ -663,8 +663,8 @@ error_m2m_ctx:
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: