summaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2011-10-03 03:21:45 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-10-19 07:57:25 -0200
commit4c2625db6f172114bcc4fd9e62f3c030c5fb4e4c (patch)
tree5c9c6da9d4fedc40f1ca72fe73303ae4f1ad5fe6 /drivers/media
parent1c5c50685a04668a4a4431534bca804969fac3c6 (diff)
downloadlinux-4c2625db6f172114bcc4fd9e62f3c030c5fb4e4c.tar.bz2
[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 6687ac33726a..3f5c7a38e6e8 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;
}