stp: port_no counter is off by one
authorAnsis Atteka <aatteka@nicira.com>
Tue, 21 Aug 2012 23:48:36 +0000 (16:48 -0700)
committerAnsis Atteka <aatteka@nicira.com>
Wed, 22 Aug 2012 00:08:05 +0000 (17:08 -0700)
commit6019f124107ff8f86ecc1dc65fde64cf935ac7d8
treebca4153f604015803bc1606bed49de9fad760711
parent459b16a1e2882e4122440121742e4df92300f335
stp: port_no counter is off by one

This counter was off by one, because port_num
should be less than STP_MAX_PORTS.

This caused an assert hit later in stp_get_port().

Issue: 13059
Signed-off-by: Ansis Atteka <aatteka@nicira.com>
Reported-by: Ram Jothikumar <rjothikumar@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
vswitchd/bridge.c