Skip to content

Commit

Permalink
[PATCH] missing null termination in power supply uevent
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stephen Hemminger authored and Anton Vorontsov committed Sep 20, 2007
1 parent 335fb8f commit ed2ba97
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/power/power_supply_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ed2ba97

Please sign in to comment.