net: fix sk_forward_alloc corruption
authorEric Dumazet <eric.dumazet@gmail.com>
Fri, 30 Oct 2009 05:03:53 +0000 (05:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Oct 2009 19:25:12 +0000 (12:25 -0700)
On UDP sockets, we must call skb_free_datagram() with socket locked,
or risk sk_forward_alloc corruption. This requirement is not respected
in SUNRPC.

Add a convenient helper, skb_free_datagram_locked() and use it in SUNRPC

Reported-by: Francis Moreau <francis.moro@gmail.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found