]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/core/net-sysfs.c
Merge branch 'for-linus' of git://git.kernel.dk/linux-2.6-block
[karo-tx-linux.git] / net / core / net-sysfs.c
index afd42d7173204454f8d6075e20b6ec1d83db4509..6ac29a46e23e188be0c3f246c7ff77e538d04ab1 100644 (file)
@@ -427,6 +427,9 @@ static int netdev_uevent(struct device *d, struct kobj_uevent_env *env)
        struct net_device *dev = to_net_dev(d);
        int retval;
 
+       if (!net_eq(dev_net(dev), &init_net))
+               return 0;
+
        /* pass interface to uevent. */
        retval = add_uevent_var(env, "INTERFACE=%s", dev->name);
        if (retval)