]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - net/ipv4/tcp_input.c
tcp: call tcp_drop() from tcp_data_queue_ofo()
[mirror_ubuntu-bionic-kernel.git] / net / ipv4 / tcp_input.c
index 32d36efa6ef04154a459bc97b4320592c268af5e..1830c6a15a3a473c97d4ec07b62766919501fb53 100644 (file)
@@ -4431,7 +4431,7 @@ coalesce_done:
                                /* All the bits are present. Drop. */
                                NET_INC_STATS(sock_net(sk),
                                              LINUX_MIB_TCPOFOMERGE);
-                               __kfree_skb(skb);
+                               tcp_drop(sk, skb);
                                skb = NULL;
                                tcp_dsack_set(sk, seq, end_seq);
                                goto add_sack;
@@ -4450,7 +4450,7 @@ coalesce_done:
                                                 TCP_SKB_CB(skb1)->end_seq);
                                NET_INC_STATS(sock_net(sk),
                                              LINUX_MIB_TCPOFOMERGE);
-                               __kfree_skb(skb1);
+                               tcp_drop(sk, skb1);
                                goto merge_right;
                        }
                } else if (tcp_try_coalesce(sk, skb1,