aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/skbuff.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/core/skbuff.c')
-rw-r--r--net/core/skbuff.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/net/core/skbuff.c b/net/core/skbuff.c
index 607a70ff2cc2..d607bae075d5 100644
--- a/net/core/skbuff.c
+++ b/net/core/skbuff.c
@@ -3497,7 +3497,9 @@ bool skb_try_coalesce(struct sk_buff *to, struct sk_buff *from,
3497 if (!skb_cloned(from)) 3497 if (!skb_cloned(from))
3498 skb_shinfo(from)->nr_frags = 0; 3498 skb_shinfo(from)->nr_frags = 0;
3499 3499
3500 /* if the skb is cloned this does nothing since we set nr_frags to 0 */ 3500 /* if the skb is not cloned this does nothing
3501 * since we set nr_frags to 0.
3502 */
3501 for (i = 0; i < skb_shinfo(from)->nr_frags; i++) 3503 for (i = 0; i < skb_shinfo(from)->nr_frags; i++)
3502 skb_frag_ref(from, i); 3504 skb_frag_ref(from, i);
3503 3505