mirror of
https://github.com/torvalds/linux
synced 2024-09-24 05:17:36 +00:00
[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>
This commit is contained in:
parent
5e6df4eb25
commit
3a07a8278a
|
@ -675,8 +675,8 @@ static int gsc_m2m_open(struct file *file)
|
||||||
|
|
||||||
error_ctrls:
|
error_ctrls:
|
||||||
gsc_ctrls_delete(ctx);
|
gsc_ctrls_delete(ctx);
|
||||||
error_fh:
|
|
||||||
v4l2_fh_del(&ctx->fh);
|
v4l2_fh_del(&ctx->fh);
|
||||||
|
error_fh:
|
||||||
v4l2_fh_exit(&ctx->fh);
|
v4l2_fh_exit(&ctx->fh);
|
||||||
kfree(ctx);
|
kfree(ctx);
|
||||||
unlock:
|
unlock:
|
||||||
|
|
Loading…
Reference in a new issue