Commit d1cf16c91605d051d36360f70858b06b103b4aed

Authored by Stephen Hemminger
Committed by Linus Torvalds
1 parent afa684f6fd

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 <shemminger@linux-foundation.org>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Acked-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

... ... @@ -431,6 +431,7 @@
431 431 err = add_uevent_var(envp, num_envp, &cur_index, buffer, buffer_size,
432 432 &cur_len, "W1_SLAVE_ID=%024LX",
433 433 (unsigned long long)sl->reg_num.id);
  434 + envp[cur_index] = NULL;
434 435 if (err)
435 436 return err;
436 437