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 20:09:50 +0000 (13:09 -0700)
commit327620d63e85999993c5240e36b5c8d742c3ba38
treecf317189fe96e1f7c49cd18654ab315503881ae8
parent4133cc197f7a498ed9d4644d48cdf97dfb71d54f
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