mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
missing null termination in one wire uevent
Need to null terminate environment. Found by inspection while looking for similar problems to platform uevent bug Signed-off-by: Stephen Hemminger <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Acked-by: Evgeniy Polyakov <[email protected]> Cc: Andrew Morton <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
afa684f6fd
commit
d1cf16c916
1 changed files with 1 additions and 0 deletions
|
|
@ -431,6 +431,7 @@ static int w1_uevent(struct device *dev, char **envp, int num_envp,
|
|||
err = add_uevent_var(envp, num_envp, &cur_index, buffer, buffer_size,
|
||||
&cur_len, "W1_SLAVE_ID=%024LX",
|
||||
(unsigned long long)sl->reg_num.id);
|
||||
envp[cur_index] = NULL;
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue