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/

Reply via email to