mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
[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>
This commit is contained in:
parent
335fb8fc71
commit
ed2ba977d4
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue