diff options
author | Jakub Kicinski <kuba@kernel.org> | 2022-02-04 02:36:16 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-02-04 02:36:16 +0100 |
commit | c59400a68c53374179cdc5f99fa77afbd092dcf8 (patch) | |
tree | c5e17286fa5b7867a5290a975cca3bc5759d510e /net/ipv4/tcp_input.c | |
parent | Merge branch 'dsa-mv88e6xxx-phylink_generic_validate' (diff) | |
parent | gcc-plugins/stackleak: Use noinstr in favor of notrace (diff) | |
download | linux-c59400a68c53374179cdc5f99fa77afbd092dcf8.tar.xz linux-c59400a68c53374179cdc5f99fa77afbd092dcf8.zip |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
No conflicts.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/ipv4/tcp_input.c')
-rw-r--r-- | net/ipv4/tcp_input.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index 302744bec59e..af94a6d22a9d 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c @@ -1660,6 +1660,8 @@ static struct sk_buff *tcp_shift_skb_data(struct sock *sk, struct sk_buff *skb, (mss != tcp_skb_seglen(skb))) goto out; + if (!tcp_skb_can_collapse(prev, skb)) + goto out; len = skb->len; pcount = tcp_skb_pcount(skb); if (tcp_skb_shift(prev, skb, pcount, len)) |