From: Felix Fietkau Date: Fri, 21 Oct 2011 01:12:19 +0000 (+0200) Subject: fix initial bridge member bringup X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b01ea9c06c71d4ec9cc1125a8be2ba8b6e1a887f;p=oweals%2Fnetifd.git fix initial bridge member bringup --- 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; }