diff options
author | Shailendra Verma <shailendra.v@samsung.com> | 2016-12-02 02:48:01 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-03-22 09:50:02 -0300 |
commit | 389e3f0d57e6ab50c207bee5ea2c4a5982a029c2 (patch) | |
tree | dde478297c6f167bd83c3e768d3abd70282b1194 /drivers/media | |
parent | 6e2e0eea072f6f82ac0afbcfa8dc38dcc3a29fa4 (diff) | |
download | blackbird-op-linux-389e3f0d57e6ab50c207bee5ea2c4a5982a029c2.tar.gz blackbird-op-linux-389e3f0d57e6ab50c207bee5ea2c4a5982a029c2.zip |
[media] bdisp: Clean up file handle in open() error path
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>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/platform/sti/bdisp/bdisp-v4l2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/sti/bdisp/bdisp-v4l2.c b/drivers/media/platform/sti/bdisp/bdisp-v4l2.c index 823608112d89..7918b928f058 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: |