]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/netfilter/nf_sockopt.c
Merge branch 'core-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-omap-h63xx.git] / net / netfilter / nf_sockopt.c
index 3dd4b3c76d811a6545a0a26140f59ac237020ea4..69d699f95f4c92658ba85608e2f9eb69c635c346 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 (sk->sk_net != &init_net)
+       if (sock_net(sk) != &init_net)
                return ERR_PTR(-ENOPROTOOPT);
 
        if (mutex_lock_interruptible(&nf_sockopt_mutex) != 0)