aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/tcp.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r--include/net/tcp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index ea815723d414..f857c3eff710 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -1268,12 +1268,12 @@ static inline void tcp_insert_write_queue_after(struct sk_buff *skb,
1268 __skb_queue_after(&sk->sk_write_queue, skb, buff); 1268 __skb_queue_after(&sk->sk_write_queue, skb, buff);
1269} 1269}
1270 1270
1271/* Insert skb between prev and next on the write queue of sk. */ 1271/* Insert new before skb on the write queue of sk. */
1272static inline void tcp_insert_write_queue_before(struct sk_buff *new, 1272static inline void tcp_insert_write_queue_before(struct sk_buff *new,
1273 struct sk_buff *skb, 1273 struct sk_buff *skb,
1274 struct sock *sk) 1274 struct sock *sk)
1275{ 1275{
1276 __skb_insert(new, skb->prev, skb, &sk->sk_write_queue); 1276 __skb_queue_before(&sk->sk_write_queue, skb, new);
1277 1277
1278 if (sk->sk_send_head == skb) 1278 if (sk->sk_send_head == skb)
1279 sk->sk_send_head = new; 1279 sk->sk_send_head = new;