]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/ipv4/ip_gre.c
[TCP]: Place file operations directly into tcp_seq_afinfo.
[linux-2.6-omap-h63xx.git] / net / ipv4 / ip_gre.c
index f9ee84420cb33005798f47c87e98bf01d5bc7216..50972b397a9a9460f43b1111226ae77b85e62c0e 100644 (file)
@@ -1190,7 +1190,7 @@ static int ipgre_close(struct net_device *dev)
        struct ip_tunnel *t = netdev_priv(dev);
        if (ipv4_is_multicast(t->parms.iph.daddr) && t->mlink) {
                struct in_device *in_dev;
-               in_dev = inetdev_by_index(dev->nd_net, t->mlink);
+               in_dev = inetdev_by_index(dev_net(dev), t->mlink);
                if (in_dev) {
                        ip_mc_dec_group(in_dev, t->parms.iph.daddr);
                        in_dev_put(in_dev);