Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1533797
| From | Shailendra Verma <shailendra.v@samsung.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] Platform: Exynos-gsc: Clean up file handle in open() error path. |
| Date | 2016-12-01 05:50 +0100 |
| Message-ID | <sJrtL-7pP-7@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
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/exynos-gsc/gsc-m2m.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/exynos-gsc/gsc-m2m.c b/drivers/media/platform/exynos-gsc/gsc-m2m.c index 9f03b79..5ea97c1 100644 --- a/drivers/media/platform/exynos-gsc/gsc-m2m.c +++ b/drivers/media/platform/exynos-gsc/gsc-m2m.c @@ -664,8 +664,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: -- 1.7.9.5
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH] Platform: Exynos-gsc: Clean up file handle in open() error path. Shailendra Verma <shailendra.v@samsung.com> - 2016-12-01 05:50 +0100
csiph-web