summaryrefslogtreecommitdiffhomepage
path: root/bridge.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-09-04 15:00:25 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-09-04 15:00:25 +0200
commit4e335f640fadda81aff9dd2dc06703961bea2826 (patch)
treebc9618ea20fdd6328f534488413dadd5530146ce /bridge.c
parentdca8c7133b1db463f6ae71ccc6d34cd12735daef (diff)
make device_claim/device_release operate on the device_user instead of the device to avoid refcount bugs
Diffstat (limited to 'bridge.c')
-rw-r--r--bridge.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bridge.c b/bridge.c
index 3f8739c..c48381b 100644
--- a/bridge.c
+++ b/bridge.c
@@ -72,7 +72,7 @@ bridge_disable_member(struct bridge_member *bm)
return 0;
system_bridge_delif(&bst->dev, bm->dev.dev);
- device_release(bm->dev.dev);
+ device_release(&bm->dev);
return 0;
}
@@ -86,7 +86,7 @@ bridge_enable_member(struct bridge_member *bm)
if (!bm->present)
return 0;
- ret = device_claim(bm->dev.dev);
+ ret = device_claim(&bm->dev);
if (ret < 0)
goto error;