]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/ipv6/netfilter/ip6_queue.c
net: use net_eq to compare nets
[net-next-2.6.git] / net / ipv6 / netfilter / ip6_queue.c
index 1cf3f0c6a9598294b74eacf35b66024ad240c759..4c7a18abcaff5a329262e9ca4dc1b934b22668a4 100644 (file)
@@ -502,7 +502,7 @@ ipq_rcv_nl_event(struct notifier_block *this,
        if (event == NETLINK_URELEASE &&
            n->protocol == NETLINK_IP6_FW && n->pid) {
                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);
        }