summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorLi RongQing <roy.qing.li@gmail.com>2012-09-18 16:53:21 +0000
committerDavid S. Miller <davem@davemloft.net>2012-09-19 17:29:13 -0400
commit8ea853fd0b721f14eacff1a5b364fe3e60d2dd82 (patch)
tree4d88c59d6c38c7796be32cdf41cec21984a1bdcb /net
parented3770a9cd5764a575b83810ea679bbff2b03082 (diff)
downloadlinux-stable-8ea853fd0b721f14eacff1a5b364fe3e60d2dd82.tar.gz
linux-stable-8ea853fd0b721f14eacff1a5b364fe3e60d2dd82.tar.bz2
linux-stable-8ea853fd0b721f14eacff1a5b364fe3e60d2dd82.zip
net/core: fix comment in skb_try_coalesce
It should be the skb which is not cloned Signed-off-by: Li RongQing <roy.qing.li@gmail.com> Acked-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-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 fe00d1208167..e33ebae519c8 100644
--- a/net/core/skbuff.c
+++ b/net/core/skbuff.c
@@ -3502,7 +3502,9 @@ bool skb_try_coalesce(struct sk_buff *to, struct sk_buff *from,
if (!skb_cloned(from))
skb_shinfo(from)->nr_frags = 0;
- /* if the skb is cloned this does nothing since we set nr_frags to 0 */
+ /* if the skb is not cloned this does nothing
+ * since we set nr_frags to 0.
+ */
for (i = 0; i < skb_shinfo(from)->nr_frags; i++)
skb_frag_ref(from, i);