[media] media: vb2: fix incorrect return value

This patch fixes incorrect return value. Errors should be returned
as negative numbers.

Reported-by: Tomasz Stanislawski <[email protected]>
Signed-off-by: Marek Szyprowski <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
Marek Szyprowski 2011-10-03 03:21:45 -03:00 • committed by Mauro Carvalho Chehab
commit 4c2625db6f

View file

@ -751,7 +751,7 @@ static int __qbuf_userptr(struct vb2_buffer *vb, struct v4l2_buffer *b)
/* Check if the provided plane buffer is large enough */
if (planes[plane].length < q->plane_sizes[plane]) {
ret = EINVAL;
ret = -EINVAL;
goto err;
}