From: Eric Dumazet Date: Sun, 4 Dec 2011 08:51:08 +0000 (+0000) Subject: tcp: fix tcp_trim_head() X-Git-Tag: v3.2.17~94 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91bb95f240936feb98f7d540027c78773e4b84cb;p=pandora-kernel.git tcp: fix tcp_trim_head() [ Upstream commit 4fa48bf3c75069d636fc8830743c929a062e80dc ] commit f07d960df3 (tcp: avoid frag allocation for small frames) breaked assumption in tcp stack that skb is either linear (skb->data_len == 0), or fully fragged (skb->data_len == skb->len) tcp_trim_head() made this assumption, we must fix it. Thanks to Vijay for providing a very detailed explanation. Reported-by: Vijay Subramanian Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed