diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2011-10-03 02:21:45 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-10-19 05:57:25 -0400 |
commit | 4c2625db6f172114bcc4fd9e62f3c030c5fb4e4c (patch) | |
tree | 5c9c6da9d4fedc40f1ca72fe73303ae4f1ad5fe6 | |
parent | 1c5c50685a04668a4a4431534bca804969fac3c6 (diff) |
[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>
-rw-r--r-- | drivers/media/video/videobuf2-core.c | 2 |
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) | |||
751 | 751 | ||
752 | /* Check if the provided plane buffer is large enough */ | 752 | /* Check if the provided plane buffer is large enough */ |
753 | if (planes[plane].length < q->plane_sizes[plane]) { | 753 | if (planes[plane].length < q->plane_sizes[plane]) { |
754 | ret = EINVAL; | 754 | ret = -EINVAL; |
755 | goto err; | 755 | goto err; |
756 | } | 756 | } |
757 | 757 | ||