diff options
Diffstat (limited to 'net/netfilter')
-rw-r--r-- | net/netfilter/nfnetlink_queue.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/netfilter/nfnetlink_queue.c b/net/netfilter/nfnetlink_queue.c index bb65a38c816c..5a8e8ff76641 100644 --- a/net/netfilter/nfnetlink_queue.c +++ b/net/netfilter/nfnetlink_queue.c | |||
@@ -734,6 +734,9 @@ nfqnl_rcv_dev_event(struct notifier_block *this, | |||
734 | { | 734 | { |
735 | struct net_device *dev = ptr; | 735 | struct net_device *dev = ptr; |
736 | 736 | ||
737 | if (dev->nd_net != &init_net) | ||
738 | return NOTIFY_DONE; | ||
739 | |||
737 | /* Drop any packets associated with the downed device */ | 740 | /* Drop any packets associated with the downed device */ |
738 | if (event == NETDEV_DOWN) | 741 | if (event == NETDEV_DOWN) |
739 | nfqnl_dev_drop(dev->ifindex); | 742 | nfqnl_dev_drop(dev->ifindex); |