bridge: avoid OOPS if root port not found
authorstephen hemminger <stephen@networkplumber.org>
Tue, 30 Apr 2013 05:29:27 +0000 (05:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Apr 2013 19:51:08 +0000 (15:51 -0400)
commit91bc033c4d01656e3d8e45a13fd58924a3099693
tree65a63f722f79435b3eb25deb62819ec3f903a354
parent7dcf313a7a68adc9a060e4e41a55245c0f9a3d31
bridge: avoid OOPS if root port not found

Bridge can crash while trying to send topology change packet.
This happens if root port can't be found. This was reported by user
but currently unable to reproduce it easily. The STP conditions that cause
this are not known yet, but the problem doesn't have to be fatal.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_stp.c