Commit 257349be authored by Dan Carpenter's avatar Dan Carpenter Committed by Greg Kroah-Hartman

staging: media: davinci_vpfe: unlock on error in vpfe_reqbufs()

commit c4a407b9 upstream.

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

Fixes: 622897da ("[media] davinci: vpfe: add v4l2 video driver support")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a299abd2
......@@ -1362,7 +1362,7 @@ static int vpfe_reqbufs(struct file *file, void *priv,
ret = vb2_queue_init(q);
if (ret) {
v4l2_err(&vpfe_dev->v4l2_dev, "vb2_queue_init() failed\n");
return ret;
goto unlock_out;
}
fh->io_allowed = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment