]> Pileus Git - ~andy/linux/blobdiff - include/net/inet_hashtables.h
Merge branch 'cputime' of git://git390.marist.edu/pub/scm/linux-2.6
[~andy/linux] / include / net / inet_hashtables.h
index a44e2248b2ef108f1bff42062449bac760ec9899..d522dcf3031ab8ad7806af1d572e22751c93a6da 100644 (file)
@@ -385,7 +385,7 @@ static inline struct sock *__inet_lookup_skb(struct inet_hashinfo *hashinfo,
        if (unlikely(sk = skb_steal_sock(skb)))
                return sk;
        else
-               return __inet_lookup(dev_net(skb->dst->dev), hashinfo,
+               return __inet_lookup(dev_net(skb_dst(skb)->dev), hashinfo,
                                     iph->saddr, sport,
                                     iph->daddr, dport, inet_iif(skb));
 }