Commit 49ad9599 authored by David S. Miller's avatar David S. Miller

Revert "net: release skb->dst in sock_queue_rcv_skb()"

This reverts commit 70355602.

As pointed out by Mark McLoughlin IP_PKTINFO cmsg data is one
post-queueing user, so this optimization is not valid right
now.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3b5b35d0
......@@ -289,11 +289,7 @@ int sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
skb->dev = NULL;
skb_set_owner_r(skb, sk);
/*
* release dst right now while its hot
*/
dst_release(skb->dst);
skb->dst = NULL;
/* Cache the SKB length before we tack it onto the receive
* queue. Once it is added it no longer belongs to us and
* may be freed by other threads of control pulling packets
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment