]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tcp: fix tcp_trim_head()
authorEric Dumazet <eric.dumazet@gmail.com>
Sun, 4 Dec 2011 08:51:08 +0000 (08:51 +0000)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Fri, 21 Dec 2012 09:49:32 +0000 (01:49 -0800)
commita9c36a2a79ade6927733dab91f47005948e10e83
treef3383b4405d35efcd99146ca6f0eb220d661e35a
parent860268c68ee9b692bf82a6a4f139b8313ee2e1c0
tcp: fix tcp_trim_head()

Orabug: 14810429
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 <subramanian.vijay@gmail.com>
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_output.c