summaryrefslogtreecommitdiffstats
path: root/scripts/coccicheck
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2014-06-02 13:21:57 +0200
committerDavid S. Miller <davem@davemloft.net>2014-06-02 10:39:42 -0700
commit51263fffadee28c99152fb78a2d41e3d10c9b0b5 (patch)
tree08ea7ae9257bef3c14ff29163a07de3c5c00b2d0 /scripts/coccicheck
parent86c92ee3a2a22bf87537072f0f2021089ab87395 (diff)
6lowpan_rtnl: fix fragmentation with two fragments
This patch fix the 6LoWPAN fragmentation for the case if we have exactly two fragments. The problem is that the (skb_unprocessed >= frag_cap) condition is always false on the second fragment after sending the first fragment. A fragmentation with only one fragment doesn't make any sense. The solution is that we use a do while loop here, that ensures we sending always a minimum of two fragments if we need a fragmentation. This issue was introduced by commit d4b2816d67d6e07b2f27037f282d8db03a5829d7 ("6lowpan: fix fragmentation"). Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts/coccicheck')
0 files changed, 0 insertions, 0 deletions