summaryrefslogtreecommitdiffhomepage
path: root/bridge.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-01-23 12:34:12 +0100
committerFelix Fietkau <nbd@openwrt.org>2015-01-23 12:34:12 +0100
commitfb2f843edf44c6f12b636cd82cdd1c71e953495f (patch)
tree3e20b2ed1de9478aaadf97cee7dd9187a611fcc2 /bridge.c
parent0b0e5e2fc5b065092644a5c4717c0a03a9098dcf (diff)
bridge: release failed member devices
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'bridge.c')
-rw-r--r--bridge.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bridge.c b/bridge.c
index d0cb048..4291e7c 100644
--- a/bridge.c
+++ b/bridge.c
@@ -180,6 +180,8 @@ error:
bst->n_failed++;
bm->present = false;
bst->n_present--;
+ device_release(&bm->dev);
+
return ret;
}