projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
170229d
)
greybus: zero all data buffers
author
Alex Elder
<elder@linaro.org>
Thu, 16 Oct 2014 11:35:28 +0000
(06:35 -0500)
committer
Greg Kroah-Hartman
<greg@kroah.com>
Fri, 17 Oct 2014 16:12:00 +0000
(18:12 +0200)
Don't assume the buffer data area will all be overwritten. Zero all
buffer space, to avoid sending crap over the wire.
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/es1-ap-usb.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/greybus/es1-ap-usb.c
b/drivers/staging/greybus/es1-ap-usb.c
index e55ad03b56d6b51503ace31f369d2c11db082e9d..2405670d8afcbd4e24eca0cb40c1cbb3e789fd5c 100644
(file)
--- a/
drivers/staging/greybus/es1-ap-usb.c
+++ b/
drivers/staging/greybus/es1-ap-usb.c
@@
-113,7
+113,7
@@
static int alloc_gbuf_data(struct gbuf *gbuf, unsigned int size,
* CPort Id before the data; set aside an extra byte for
* that purpose in that case.
*/
- buffer = k
m
alloc(cport_reserve + size, gfp_mask);
+ buffer = k
z
alloc(cport_reserve + size, gfp_mask);
if (!buffer)
return -ENOMEM;