]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blobdiff - net/ipv4/netfilter/ip_queue.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6
[mirror_ubuntu-eoan-kernel.git] / net / ipv4 / netfilter / ip_queue.c
index c9f90e8c5191df4f2e0dcb885bab0e3e9935a500..2855f1f38cbc2b2278197c3d6522db7883f8a076 100644 (file)
@@ -497,10 +497,9 @@ ipq_rcv_nl_event(struct notifier_block *this,
 {
        struct netlink_notify *n = ptr;
 
-       if (event == NETLINK_URELEASE &&
-           n->protocol == NETLINK_FIREWALL && n->pid) {
+       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);
        }
@@ -621,7 +620,7 @@ cleanup_netlink_notifier:
 static void __exit ip_queue_fini(void)
 {
        nf_unregister_queue_handlers(&nfqh);
-       synchronize_net();
+
        ipq_flush(NULL, 0);
 
 #ifdef CONFIG_SYSCTL