projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2230124
)
[media] videobuf2: Add log for size checking error in __qbuf_userptr
author
Seung-Woo Kim
<
[email protected]
>
Tue, 20 Aug 2013 07:48:06 +0000
(
04:48
-0300)
committer
Mauro Carvalho Chehab
<
[email protected]
>
Thu, 26 Sep 2013 10:34:17 +0000
(07:34 -0300)
__qbuf_userptr checks whether provided buffer is large enough, and
it returns error without any log.
Signed-off-by: Seung-Woo Kim <
[email protected]
>
Signed-off-by: Heejin Woo <
[email protected]
>
Signed-off-by: Sylwester Nawrocki <
[email protected]
>
Signed-off-by: Mauro Carvalho Chehab <
[email protected]
>
drivers/media/v4l2-core/videobuf2-core.c
patch
|
blob
|
history
diff --git
a/drivers/media/v4l2-core/videobuf2-core.c
b/drivers/media/v4l2-core/videobuf2-core.c
index 67ddadd5ea3860d62a886b85439abf12048084a8..ba389f58eec78d74bd27b184ffef025ac25e57f9 100644
(file)
--- a/
drivers/media/v4l2-core/videobuf2-core.c
+++ b/
drivers/media/v4l2-core/videobuf2-core.c
@@
-1013,6
+1013,10
@@
static int __qbuf_userptr(struct vb2_buffer *vb, const struct v4l2_buffer *b)
/* Check if the provided plane buffer is large enough */
if (planes[plane].length < q->plane_sizes[plane]) {
+ dprintk(1, "qbuf: provided buffer size %u is less than "
+ "setup size %u for plane %d\n",
+ planes[plane].length,
+ q->plane_sizes[plane], plane);
ret = -EINVAL;
goto err;
}