Commit 7a67e56f authored by Committed by David S. Miller
net: Fix oops when splicing skbs from a frag_list.
Lennert Buytenhek wrote: > Since 4fb66994 ("net: Optimize memory > usage when splicing from sockets.") I'm seeing this oops (e.g. in > 2.6.30-rc3) when splicing from a TCP socket to /dev/null on a driver > (mv643xx_eth) that uses LRO in the skb mode (lro_receive_skb) rather > than the frag mode: My patch incorrectly assumed skb->sk was always valid, but for "frag_listed" skbs we can only use skb->sk of their parent. Reported-by: Lennert Buytenhek <email@example.com> Debugged-by: Lennert Buytenhek <firstname.lastname@example.org> Tested-by: Lennert Buytenhek <email@example.com> Signed-off-by: Jarek Poplawski <firstname.lastname@example.org> Signed-off-by: David S. Miller <email@example.com>
Showing with 14 additions and 13 deletions