Eric Dumazet 93bb64eac1 net: skb_free_datagram_locked() fix
Commit 4b0b72f7dd617b ( net: speedup udp receive path )
introduced a bug in skb_free_datagram_locked().

We should not skb_orphan() skb if we dont have the guarantee we are the
last skb user, this might happen with MSG_PEEK concurrent users.

To keep socket locked for the smallest period of time, we split
consume_skb() logic, inlined in skb_free_datagram_locked()

Reported-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-05-03 23:18:14 -07:00
..
2010-04-20 16:37:13 -07:00
2010-04-27 18:13:55 -07:00
2010-04-13 03:03:14 -07:00
2010-05-03 23:18:14 -07:00
2010-05-03 15:53:54 -07:00
2010-04-20 16:37:13 -07:00
2010-04-23 16:37:33 -07:00
2010-04-20 16:37:13 -07:00
2010-04-20 16:37:13 -07:00
2010-04-20 16:37:13 -07:00
2010-04-20 16:37:13 -07:00
2010-05-02 22:26:57 -07:00
2010-04-20 16:37:13 -07:00
2009-07-12 12:22:34 -07:00