mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
[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 <[email protected]> Reviewed-by: Fabien Dessenne <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
6e2e0eea07
commit
389e3f0d57
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue