Commit ed2ba977 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by Anton Vorontsov

[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: default avatarStephen Hemminger <shemminger@linux-foundation.org>
parent 335fb8fc
...@@ -289,6 +289,7 @@ int power_supply_uevent(struct device *dev, char **envp, int num_envp, ...@@ -289,6 +289,7 @@ int power_supply_uevent(struct device *dev, char **envp, int num_envp,
if (ret) if (ret)
goto out; goto out;
} }
envp[i] = NULL;
out: out:
free_page((unsigned long)prop_buf); free_page((unsigned long)prop_buf);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment