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)
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>

No differences found