pata_hpt366: Enable bits are unreliable so don't use them
[safe/jmp/linux-2.6] / net / bridge / br_sysfs_br.c
index 6cc5cfe..33c6c4a 100644 (file)
@@ -149,7 +149,11 @@ static ssize_t show_stp_state(struct device *d,
 
 static void set_stp_state(struct net_bridge *br, unsigned long val)
 {
-       br->stp_enabled = val;
+       rtnl_lock();
+       spin_unlock_bh(&br->lock);
+       br_stp_set_enabled(br, val);
+       spin_lock_bh(&br->lock);
+       rtnl_unlock();
 }
 
 static ssize_t store_stp_state(struct device *d,