summaryrefslogtreecommitdiff
path: root/drivers/media/platform/exynos-gsc/gsc-m2m.c
diff options
context:
space:
mode:
authorShailendra Verma <shailendra.v@samsung.com>2016-12-02 02:45:27 -0200
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-01-31 10:01:53 -0200
commit3a07a8278ae7a38806e017994c50a95ad50750c3 (patch)
tree7bbd08f62cbda85bd97e7506190489ac4fc4bf70 /drivers/media/platform/exynos-gsc/gsc-m2m.c
parent5e6df4eb255af36b36f6b31b4bcece23cffefc5c (diff)
downloadlinux-3a07a8278ae7a38806e017994c50a95ad50750c3.tar.gz
[media] exynos-gsc: 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/exynos-gsc/gsc-m2m.c')
-rw-r--r--drivers/media/platform/exynos-gsc/gsc-m2m.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/exynos-gsc/gsc-m2m.c b/drivers/media/platform/exynos-gsc/gsc-m2m.c
index f49f24b4462a..82505025d96c 100644
--- a/drivers/media/platform/exynos-gsc/gsc-m2m.c
+++ b/drivers/media/platform/exynos-gsc/gsc-m2m.c
@@ -675,8 +675,8 @@ static int gsc_m2m_open(struct file *file)
error_ctrls:
gsc_ctrls_delete(ctx);
-error_fh:
v4l2_fh_del(&ctx->fh);
+error_fh:
v4l2_fh_exit(&ctx->fh);
kfree(ctx);
unlock: