From 4e335f640fadda81aff9dd2dc06703961bea2826 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 4 Sep 2011 15:00:25 +0200 Subject: make device_claim/device_release operate on the device_user instead of the device to avoid refcount bugs --- bridge.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bridge.c') 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; -- cgit v1.2.3