bpf: Add socket assign support
[linux-2.6-microblaze.git] / net / ipv6 / ip6_input.c
index 7b089d0..e96304d 100644 (file)
@@ -285,7 +285,8 @@ static struct sk_buff *ip6_rcv_core(struct sk_buff *skb, struct net_device *dev,
        rcu_read_unlock();
 
        /* Must drop socket now because of tproxy. */
-       skb_orphan(skb);
+       if (!skb_sk_is_prefetched(skb))
+               skb_orphan(skb);
 
        return skb;
 err: