diff options
-rw-r--r-- | net/core/net-sysfs.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index afd42d717320..6ac29a46e23e 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c | |||
@@ -427,6 +427,9 @@ static int netdev_uevent(struct device *d, struct kobj_uevent_env *env) | |||
427 | struct net_device *dev = to_net_dev(d); | 427 | struct net_device *dev = to_net_dev(d); |
428 | int retval; | 428 | int retval; |
429 | 429 | ||
430 | if (!net_eq(dev_net(dev), &init_net)) | ||
431 | return 0; | ||
432 | |||
430 | /* pass interface to uevent. */ | 433 | /* pass interface to uevent. */ |
431 | retval = add_uevent_var(env, "INTERFACE=%s", dev->name); | 434 | retval = add_uevent_var(env, "INTERFACE=%s", dev->name); |
432 | if (retval) | 435 | if (retval) |