net: fix IP early demux races
[linux-2.6-block.git] / include / net / sock.h
index c4205e0a3a2d28066c207221eeacb75c6c99eedc..28790fe182065849e80dc1d690ebe8bc9c1ffc9c 100644 (file)
@@ -817,7 +817,7 @@ void sk_stream_write_space(struct sock *sk);
 static inline void __sk_add_backlog(struct sock *sk, struct sk_buff *skb)
 {
        /* dont let skb dst not refcounted, we are going to leave rcu lock */
-       skb_dst_force(skb);
+       skb_dst_force_safe(skb);
 
        if (!sk->sk_backlog.tail)
                sk->sk_backlog.head = skb;