[<prev] [next>] [day] [month] [year] [list]
Message-id: <1480049206-20139-1-git-send-email-shailendra.v@samsung.com>
Date: Fri, 25 Nov 2016 10:16:46 +0530
From: Shailendra Verma <shailendra.v@...sung.com>
To: Mauro Carvalho Chehab <mchehab@...nel.org>,
Fabien Dessenne <fabien.dessenne@...com>,
linux-media@...r.kernel.org, linux-kernel@...r.kernel.org,
Shailendra Verma <shailendra.v@...sung.com>,
Shailendra Verma <shailendra.capricorn@...il.com>
Cc: vidushi.koul@...sung.com
Subject: [PATCH] Media: Platform: Sti: Bdisp: - Fix for error handling
The File handle is not yet added in the vdev list.So no need to call
v4l2_fh_del(&ctx->fh)if it fails to create control.
Signed-off-by: Shailendra Verma <shailendra.v@...sung.com>
---
drivers/media/platform/sti/bdisp/bdisp-v4l2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/platform/sti/bdisp/bdisp-v4l2.c b/drivers/media/platform/sti/bdisp/bdisp-v4l2.c
index 45f82b5..fbf302f 100644
--- a/drivers/media/platform/sti/bdisp/bdisp-v4l2.c
+++ b/drivers/media/platform/sti/bdisp/bdisp-v4l2.c
@@ -632,8 +632,8 @@ static int bdisp_open(struct file *file)
error_ctrls:
bdisp_ctrls_delete(ctx);
-error_fh:
v4l2_fh_del(&ctx->fh);
+error_fh:
v4l2_fh_exit(&ctx->fh);
bdisp_hw_free_nodes(ctx);
mem_ctx:
--
1.7.9.5
Powered by blists - more mailing lists