mirror of
https://github.com/torvalds/linux.git
synced 2024-12-27 21:33:00 +00:00
[media] staging: media: davinci_vpfe: unlock on error in vpfe_reqbufs()
We should unlock before returning this error code in vpfe_reqbufs().
Fixes: 622897da67
("[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>
This commit is contained in:
parent
eb02cadc5c
commit
c4a407b91f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user