]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
[media] bdisp: Clean up file handle in open() error path
authorShailendra Verma <shailendra.v@samsung.com>
Fri, 2 Dec 2016 04:48:01 +0000 (02:48 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 3 Mar 2017 10:10:11 +0000 (07:10 -0300)
commiteb3f1b7f2d09ffcc9638b03c4e7e69354e2d3cbb
tree88a7c34cb78fb2ae6f389014f94d82bdcc2c5bff
parente6b377dbbb944d5e3ceef4e5d429fc5c841e3692
[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>
drivers/media/platform/sti/bdisp/bdisp-v4l2.c