bridge: release failed member devices
authorFelix Fietkau <nbd@openwrt.org>
Fri, 23 Jan 2015 11:34:12 +0000 (12:34 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 23 Jan 2015 11:34:12 +0000 (12:34 +0100)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
bridge.c

index d0cb0488b7eb93bab5e7150f48bd31b9a4aabc11..4291e7c1af9d00a1b6562fee2ff4e4264de30e97 100644 (file)
--- 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;
 }