Environment wasn't being NULL terminated.
Suggested by Kay Sievers
Fixes: http://bugzilla.kernel.org/show_bug.cgi?id=9034
Signed-off-by: Stephen Hemminger <[email protected]>
--- a/drivers/base/platform.c 2007-06-25 09:03:10.000000000 -0700
+++ b/drivers/base/platform.c 2007-09-20 11:35:57.000000000 -0700
@@ -546,6 +546,7 @@ static int platform_uevent(struct device
struct platform_device *pdev = to_platform_device(dev);
envp[0] = buffer;
+ envp[1] = NULL;
snprintf(buffer, buffer_size, "MODALIAS=%s", pdev->name);
return 0;
}
--
Stephen Hemminger <[email protected]>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]