From b01ea9c06c71d4ec9cc1125a8be2ba8b6e1a887f Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 21 Oct 2011 03:12:19 +0200 Subject: [PATCH] fix initial bridge member bringup --- bridge.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bridge.c b/bridge.c index 1b9e6bd..70ea0f0 100644 --- a/bridge.c +++ b/bridge.c @@ -224,11 +224,11 @@ bridge_create_member(struct bridge_state *bst, struct device *dev, bool hotplug) bm = calloc(1, sizeof(*bm)); bm->bst = bst; bm->dev.cb = bridge_member_cb; - device_add_user(&bm->dev, dev); bm->dev.hotplug = hotplug; - list_add_tail(&bm->list, &bst->members); + device_add_user(&bm->dev, dev); + return bm; } -- 2.25.1