Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/kaber/nf-next-2.6
[platform/kernel/linux-arm64.git] / net / ipv4 / netfilter / ip_queue.c
index 9f07870..49ad447 100644 (file)
@@ -499,7 +499,7 @@ ipq_rcv_nl_event(struct notifier_block *this,
 
        if (event == NETLINK_URELEASE && n->protocol == NETLINK_FIREWALL) {
                write_lock_bh(&queue_lock);
-               if ((n->net == &init_net) && (n->pid == peer_pid))
+               if ((net_eq(n->net, &init_net)) && (n->pid == peer_pid))
                        __ipq_reset();
                write_unlock_bh(&queue_lock);
        }