summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-03-05 21:09:26 +0100
committerFelix Fietkau <nbd@openwrt.org>2012-03-05 21:09:26 +0100
commit43d4ac5427035dabcb23db487b4077f8510d3147 (patch)
tree38f76967ed98b0f5e5b13f731b127ba16ce74fc5
parente30469d12b735f5789d664cb3e22a2a29a6aa619 (diff)
bridge: fix removal of present bridge members
-rw-r--r--bridge.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bridge.c b/bridge.c
index d3b2867..035619b 100644
--- a/bridge.c
+++ b/bridge.c
@@ -132,11 +132,12 @@ bridge_remove_member(struct bridge_member *bm)
if (!bm->present)
return;
- bm->present = false;
- bm->bst->n_present--;
if (bst->dev.active)
bridge_disable_member(bm);
+ bm->present = false;
+ bm->bst->n_present--;
+
bst->force_active = false;
if (bst->n_present == 0)
device_set_present(&bst->dev, false);