Skip to content

Commit

Permalink
[media] bdisp: Clean up file handle in open() error path
Browse files Browse the repository at this point in the history
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@samsung.com>
Reviewed-by: Fabien Dessenne <fabien.dessenne@st.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
  • Loading branch information
Shailendra Verma authored and Mauro Carvalho Chehab committed Mar 3, 2017
1 parent e6b377d commit eb3f1b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/platform/sti/bdisp/bdisp-v4l2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit eb3f1b7

Please sign in to comment.