]> git.baikalelectronics.ru Git - kernel.git/commit
net: bridge: fix vlan stats continue counter
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Mon, 27 Jun 2016 16:34:42 +0000 (18:34 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Jun 2016 09:33:35 +0000 (05:33 -0400)
commite640461864ec097f5c6dea09f127c2053fe7994f
tree7b36a16e2e9e4e75247305795110cc2b530731a9
parentef22b72f10eb6013da006d1341cd7f1155e7711d
net: bridge: fix vlan stats continue counter

I made a dumb off-by-one mistake when I added the vlan stats counter
dumping code. The increment should happen before the check, not after
otherwise we miss one entry when we continue dumping.

Fixes: 2c4558b3416b ("bridge: netlink: export per-vlan stats")
Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_netlink.c