From: Eric Dumazet Date: Tue, 4 May 2010 06:18:14 +0000 (-0700) Subject: net: skb_free_datagram_locked() fix X-Git-Tag: v2.6.35-rc1~473^2~286 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93bb64eac10aad3dae6178d7da94765f207d121f;p=pandora-kernel.git 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 Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed