diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-09-04 15:00:25 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-09-04 15:00:25 +0200 |
commit | 4e335f640fadda81aff9dd2dc06703961bea2826 (patch) | |
tree | bc9618ea20fdd6328f534488413dadd5530146ce /bridge.c | |
parent | dca8c7133b1db463f6ae71ccc6d34cd12735daef (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |