[media] media: davinci_vpfe: fix missing unlock on error in vpfe_prepare_pipeline()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 5 Feb 2016 13:52:00 +0000 (11:52 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 10 Feb 2016 11:27:09 +0000 (09:27 -0200)
commit4f388a9210e2a2c1cd83a5580b74aa13876dbf14
tree4c46620aa4a0feeb3aa3b934d557fcf1493a2adc
parentac75fe5d8fe4a0bf063be18fb29684405279e79e
[media] media: davinci_vpfe: fix missing unlock on error in vpfe_prepare_pipeline()

Add the missing unlock before return from function
vpfe_prepare_pipeline() in the error handling case.

video->lock is lock/unlock in function vpfe_open(),
and no need to unlock it here, so remove unlock
video->lock.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/staging/media/davinci_vpfe/vpfe_video.c