]> 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>
Wed, 22 Mar 2017 12:50:02 +0000 (09:50 -0300)
commit206f6ccb610c5d50c649c574a341be1e4c1a85bd
treedde478297c6f167bd83c3e768d3abd70282b1194
parentb9e839be43dfc0ed25ea3ff8f373a14ca0d2b7f2
[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