From: Florin Malita Date: Sun, 18 Sep 2005 07:24:12 +0000 (-0700) Subject: [BOND]: Fix bond_init() error path handling. X-Git-Tag: v2.6.14-rc2~5^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40abc27066c49b2c13c817154d438431b0303b96;p=pandora-kernel.git [BOND]: Fix bond_init() error path handling. From: Florin Malita bond_init() is not releasing rtnl_sem after register_netdevice() and before calling unregister_netdevice() (from bond_free_all()) in the exception path. As the device registration is not completed (dev->reg_state == NETREG_REGISTERING), the call to unregister_netdevice() triggers BUG_ON(dev->reg_state != NETREG_REGISTERED). Signed-off-by: Florin Malita Signed-off-by: Andrew Morton Signed-off-by: David S. Miller --- Reading git-diff-tree failed