diff options
author | Stephen Hemminger <shemminger@linux-foundation.org> | 2007-09-20 15:06:10 -0400 |
---|---|---|
committer | Anton Vorontsov <cbou@mail.ru> | 2007-09-20 17:22:23 -0400 |
commit | ed2ba977d43a6031f78f9e49d739ef5094f512e4 (patch) | |
tree | 4ff8b0620a00f778bc6a5582b08213837bcb963a /drivers/power/power_supply_sysfs.c | |
parent | 335fb8fc71692830aca0a5a5fe7f60016ee0d0aa (diff) |
[PATCH] missing null termination in power supply uevent
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>
Diffstat (limited to 'drivers/power/power_supply_sysfs.c')
-rw-r--r-- | drivers/power/power_supply_sysfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/power_supply_sysfs.c b/drivers/power/power_supply_sysfs.c index c7c4574729b..de3155b2128 100644 --- 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, | |||
289 | if (ret) | 289 | if (ret) |
290 | goto out; | 290 | goto out; |
291 | } | 291 | } |
292 | envp[i] = NULL; | ||
292 | 293 | ||
293 | out: | 294 | out: |
294 | free_page((unsigned long)prop_buf); | 295 | free_page((unsigned long)prop_buf); |