[NET]: Support multiple network namespaces with netlink
[linux-2.6-block.git] / net / netfilter / nfnetlink_log.c
index 2351533a850755bebd1c9ca6b26c9462fd296cf8..8e4001b8f76469ec454a9f5e3e3d86dce9c68ff1 100644 (file)
@@ -706,7 +706,8 @@ nfulnl_rcv_nl_event(struct notifier_block *this,
 
                        hlist_for_each_entry_safe(inst, tmp, t2, head, hlist) {
                                UDEBUG("node = %p\n", inst);
-                               if (n->pid == inst->peer_pid)
+                               if ((n->net == &init_net) &&
+                                   (n->pid == inst->peer_pid))
                                        __instance_destroy(inst);
                        }
                }