summaryrefslogtreecommitdiff
path: root/drivers/media
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2011-10-03 06:21:45 (GMT)
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-10-19 09:57:25 (GMT)
commit4c2625db6f172114bcc4fd9e62f3c030c5fb4e4c (patch)
tree5c9c6da9d4fedc40f1ca72fe73303ae4f1ad5fe6 /drivers/media
parent1c5c50685a04668a4a4431534bca804969fac3c6 (diff)
downloadlinux-fsl-qoriq-4c2625db6f172114bcc4fd9e62f3c030c5fb4e4c.tar.xz
[media] media: vb2: fix incorrect return value
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>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/videobuf2-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/videobuf2-core.c b/drivers/media/video/videobuf2-core.c
index 6687ac3..3f5c7a3 100644
--- a/drivers/media/video/videobuf2-core.c
+++ b/drivers/media/video/videobuf2-core.c
@@ -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;
}