]> git.baikalelectronics.ru Git - 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)
commit97e33be84d0edcce3bd85db5cf378ca6135d2ed0
tree88a7c34cb78fb2ae6f389014f94d82bdcc2c5bff
parent9a0d56d61f5676eea5f0e2de9f75a0c8b957b41e
[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