Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1533795 > unrolled thread

[PATCH] Platform: Exynos4-is: Clean up file handle in open() error path.

Started byShailendra Verma <shailendra.v@samsung.com>
First post2016-12-01 05:50 +0100
Last post2016-12-01 05:50 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] Platform: Exynos4-is: Clean up file handle in open() error  path. Shailendra Verma <shailendra.v@samsung.com> - 2016-12-01 05:50 +0100

#1533795 — [PATCH] Platform: Exynos4-is: Clean up file handle in open() error path.

FromShailendra Verma <shailendra.v@samsung.com>
Date2016-12-01 05:50 +0100
Subject[PATCH] Platform: Exynos4-is: Clean up file handle in open() error path.
Message-ID<sJrtL-7pP-5@gated-at.bofh.it>
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 control.

Signed-off-by: Shailendra Verma <shailendra.v@samsung.com>
---
 drivers/media/platform/exynos4-is/fimc-m2m.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/platform/exynos4-is/fimc-m2m.c b/drivers/media/platform/exynos4-is/fimc-m2m.c
index 6028e4f..d8724fe 100644
--- a/drivers/media/platform/exynos4-is/fimc-m2m.c
+++ b/drivers/media/platform/exynos4-is/fimc-m2m.c
@@ -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:
-- 
1.7.9.5

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web