projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
335fb8f
)
[PATCH] missing null termination in power supply uevent
author
Stephen Hemminger
<shemminger@linux-foundation.org>
Thu, 20 Sep 2007 19:06:10 +0000
(12:06 -0700)
committer
Anton Vorontsov
<cbou@mail.ru>
Thu, 20 Sep 2007 21:22:23 +0000
(
01:22
+0400)
Need to null terminate environment. Found by inspection
while looking for similar problems to platform uevent bug
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
drivers/power/power_supply_sysfs.c
patch
|
blob
|
history
diff --git
a/drivers/power/power_supply_sysfs.c
b/drivers/power/power_supply_sysfs.c
index c7c4574729b190c6358e57e7f02d04427be3c029..de3155b21285df91c29def0571409e28973bdbdc 100644
(file)
--- a/
drivers/power/power_supply_sysfs.c
+++ b/
drivers/power/power_supply_sysfs.c
@@
-289,6
+289,7
@@
int power_supply_uevent(struct device *dev, char **envp, int num_envp,
if (ret)
goto out;
}
+ envp[i] = NULL;
out:
free_page((unsigned long)prop_buf);