Commit:     ed2ba977d43a6031f78f9e49d739ef5094f512e4
Parent:     335fb8fc71692830aca0a5a5fe7f60016ee0d0aa
Author:     Stephen Hemminger <[EMAIL PROTECTED]>
AuthorDate: Thu Sep 20 12:06:10 2007 -0700
Committer:  Anton Vorontsov <[EMAIL PROTECTED]>
CommitDate: Fri Sep 21 01:22:23 2007 +0400

    [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 <[EMAIL PROTECTED]>
 drivers/power/power_supply_sysfs.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/power/power_supply_sysfs.c 
index c7c4574..de3155b 100644
--- a/drivers/power/power_supply_sysfs.c
+++ b/drivers/power/power_supply_sysfs.c
@@ -289,6 +289,7 @@ int power_supply_uevent(struct device *dev, char **envp, 
int num_envp,
                if (ret)
                        goto out;
+       envp[i] = NULL;
        free_page((unsigned long)prop_buf);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to