diff options
Diffstat (limited to 'net/core/pktgen.c')
-rw-r--r-- | net/core/pktgen.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/core/pktgen.c b/net/core/pktgen.c index 33d7247fb19d..d7c30ce095a1 100644 --- a/net/core/pktgen.c +++ b/net/core/pktgen.c | |||
@@ -1975,6 +1975,9 @@ static int pktgen_device_event(struct notifier_block *unused, | |||
1975 | { | 1975 | { |
1976 | struct net_device *dev = ptr; | 1976 | struct net_device *dev = ptr; |
1977 | 1977 | ||
1978 | if (dev->nd_net != &init_net) | ||
1979 | return NOTIFY_DONE; | ||
1980 | |||
1978 | /* It is OK that we do not hold the group lock right now, | 1981 | /* It is OK that we do not hold the group lock right now, |
1979 | * as we run under the RTNL lock. | 1982 | * as we run under the RTNL lock. |
1980 | */ | 1983 | */ |