From 43d4ac5427035dabcb23db487b4077f8510d3147 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 5 Mar 2012 21:09:26 +0100 Subject: [PATCH] bridge: fix removal of present bridge members --- bridge.c | 5 +++-- 1 file 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); -- 2.25.1