diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2016-11-18 09:30:24 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-11-23 13:59:21 -0200 |
commit | c4a407b91f4b644145492e28723f9f880efb1da0 (patch) | |
tree | 14739c73cb128c47e9f2658b1cb339d56d4fb95f /drivers/staging | |
parent | eb02cadc5ca0d9753510cded8b9afc57c37be4e0 (diff) | |
download | op-kernel-dev-c4a407b91f4b644145492e28723f9f880efb1da0.zip op-kernel-dev-c4a407b91f4b644145492e28723f9f880efb1da0.tar.gz |
[media] staging: media: davinci_vpfe: unlock on error in vpfe_reqbufs()
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/media/davinci_vpfe/vpfe_video.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/media/davinci_vpfe/vpfe_video.c b/drivers/staging/media/davinci_vpfe/vpfe_video.c index 8fd3f7c..c27d7e9 100644 --- a/drivers/staging/media/davinci_vpfe/vpfe_video.c +++ b/drivers/staging/media/davinci_vpfe/vpfe_video.c @@ -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; |