Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122156
b: refs/heads/master
c: 09bb521
h: refs/heads/master
v: v3
  • Loading branch information
Daniel Lezcano authored and David S. Miller committed Nov 26, 2008
1 parent 5adb695 commit 2bd3573
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cb13fc209f5c9394713319323166f74b01759ead
refs/heads/master: 09bb52175bf4d6a46fc8502e76be29206d9a677a
3 changes: 3 additions & 0 deletions trunk/net/core/net-sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2bd3573

Please sign in to comment.