[NET]: Support multiple network namespaces with netlink
[deliverable/linux.git] / net / netfilter / nfnetlink_queue.c
index 5a8e8ff766414438ad0a3ea9f3c338b9af3905d5..c97369f48db7844482cd15eaa648e297166139a7 100644 (file)
@@ -765,7 +765,8 @@ nfqnl_rcv_nl_event(struct notifier_block *this,
                        struct hlist_head *head = &instance_table[i];
 
                        hlist_for_each_entry_safe(inst, tmp, t2, head, hlist) {
-                               if (n->pid == inst->peer_pid)
+                               if ((n->net == &init_net) &&
+                                   (n->pid == inst->peer_pid))
                                        __instance_destroy(inst);
                        }
                }
This page took 0.036787 seconds and 5 git commands to generate.