]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] missing null termination in power supply uevent
authorStephen Hemminger <shemminger@linux-foundation.org>
Thu, 20 Sep 2007 19:06:10 +0000 (12:06 -0700)
committerAnton Vorontsov <cbou@mail.ru>
Thu, 20 Sep 2007 21:22:23 +0000 (01:22 +0400)
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>
drivers/power/power_supply_sysfs.c

index c7c4574729b190c6358e57e7f02d04427be3c029..de3155b21285df91c29def0571409e28973bdbdc 100644 (file)
@@ -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);