Skip to content

Commit

Permalink
[media] media: vb2: fix incorrect return value
Browse files Browse the repository at this point in the history
This patch fixes incorrect return value. Errors should be returned
as negative numbers.

Reported-by: Tomasz Stanislawski <t.stanislaws@samsung.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Marek Szyprowski authored and Mauro Carvalho Chehab committed Oct 19, 2011
1 parent 1c5c506 commit 4c2625d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/videobuf2-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 4c2625d

Please sign in to comment.