staging: media: davinci_vpfe: unlock on error in vpfe_reqbufs()
commit257349bedca317b10b25d489082bd32a38480aae
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 18 Nov 2016 11:30:24 +0000 (18 09:30 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Jan 2017 10:39:35 +0000 (12 11:39 +0100)
tree1c525e8e38ffae2421eddddf7c12420570f9b16c
parenta299abd230818ceb4e68520ba2f442194267cc50
staging: media: davinci_vpfe: unlock on error in vpfe_reqbufs()

commit c4a407b91f4b644145492e28723f9f880efb1da0 upstream.

We should unlock before returning this error code in vpfe_reqbufs().

Fixes: 622897da67b3 ("[media] davinci: vpfe: add v4l2 video driver support")

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/davinci_vpfe/vpfe_video.c