git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add explicit zeroing to "envp" array in device 'show' method
[sfrench/cifs-2.6.git]
/
drivers
/
base
/
core.c
diff --git
a/drivers/base/core.c
b/drivers/base/core.c
index 6de33d7a29ba989194cd6fa4f0148cc702acebed..67c92582d6ef5da185eecd5645d145a984e56310 100644
(file)
--- a/
drivers/base/core.c
+++ b/
drivers/base/core.c
@@
-284,6
+284,7
@@
static ssize_t show_uevent(struct device *dev, struct device_attribute *attr,
/* let the kset specific function add its keys */
pos = data;
+ memset(envp, 0, sizeof(envp));
retval = kset->uevent_ops->uevent(kset, &dev->kobj,
envp, ARRAY_SIZE(envp),
pos, PAGE_SIZE);