diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-05-03 23:18:14 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-05-03 23:18:14 -0700 |
commit | 93bb64eac10aad3dae6178d7da94765f207d121f (patch) | |
tree | 5f0990ed1a0a9fa9483d828a16235085d5d84215 /drivers/net/forcedeth.c | |
parent | f5460618405eec8c3300947a499011528a115acd (diff) | |
download | linux-93bb64eac10aad3dae6178d7da94765f207d121f.tar.bz2 |
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>
Diffstat (limited to 'drivers/net/forcedeth.c')
0 files changed, 0 insertions, 0 deletions