summaryrefslogtreecommitdiff
path: root/net/ethtool/wol.c
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2020-04-04 11:22:57 -0400
committerDavid S. Miller <davem@davemloft.net>2020-04-06 10:05:42 -0700
commita7f9a6f4cc5fb4d5c5a03f3f898b7cb86db05cbf (patch)
tree027c8c9a998c3a506d46f66ed5289d3448cad49a /net/ethtool/wol.c
parentbee348907d19d654e8524d3a946dcd25b693aa7e (diff)
downloadlwn-a7f9a6f4cc5fb4d5c5a03f3f898b7cb86db05cbf.tar.gz
lwn-a7f9a6f4cc5fb4d5c5a03f3f898b7cb86db05cbf.zip
ipv6: rpl: fix loop iteration
This patch fix the loop iteration by not walking over the last iteration. The cmpri compressing value exempt the last segment. As the code shows the last iteration will be overwritten by cmpre value handling which is for the last segment. I think this doesn't end in any bufferoverflows because we work on worst case temporary buffer sizes but it ends in not best compression settings in some cases. Fixes: 8610c7c6e3bd ("net: ipv6: add support for rpl sr exthdr") Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ethtool/wol.c')
0 files changed, 0 insertions, 0 deletions