[BRIDGE]: Fix deadlock in br_stp_disable_bridge
authorAdrian Drzewiecki <z@drze.net>
Wed, 15 Feb 2006 09:47:48 +0000 (01:47 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Feb 2006 09:47:48 +0000 (01:47 -0800)
commit78872ccb68335b14f0d1ac7338ecfcbf1cba1df4
tree20f39c4cddd8f4d461977dc0ed334e61b6c1d431
parentee68cea2c26b7a8222f9020f54d22c6067011e8b
[BRIDGE]: Fix deadlock in br_stp_disable_bridge

Looks like somebody forgot to use the _bh spin_lock variant. We ran into a
deadlock where br->hello_timer expired while br_stp_disable_br() walked
br->port_list.

Signed-off-by: Adrian Drzewiecki <z@drze.net>
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_stp_if.c