]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/netfilter/nf_sockopt.c
cpumask: statement expressions confuse some versions of gcc
[linux-2.6-omap-h63xx.git] / net / netfilter / nf_sockopt.c
index 69d699f95f4c92658ba85608e2f9eb69c635c346..01489681fa9632de60a4e070e0058696adc83087 100644 (file)
@@ -65,7 +65,7 @@ static struct nf_sockopt_ops *nf_sockopt_find(struct sock *sk, int pf,
 {
        struct nf_sockopt_ops *ops;
 
-       if (sock_net(sk) != &init_net)
+       if (!net_eq(sock_net(sk), &init_net))
                return ERR_PTR(-ENOPROTOOPT);
 
        if (mutex_lock_interruptible(&nf_sockopt_mutex) != 0)