Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c4a407b9 authored by Dan Carpenter's avatar Dan Carpenter Committed by Mauro Carvalho Chehab
Browse files

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



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>
parent eb02cadc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;