Remove nested rtnl_unlock(). modified: net/mac80211/ieee80211.c Signed-off-by: Tim Gardner <tim.gardner@xxxxxxxxxx> --- net/mac80211/ieee80211.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/net/mac80211/ieee80211.c b/net/mac80211/ieee80211.c index 3587cd4..64476f9 100644 --- a/net/mac80211/ieee80211.c +++ b/net/mac80211/ieee80211.c @@ -4815,10 +4815,8 @@ int ieee80211_register_hw(struct ieee80211_hw *hw) rtnl_lock(); result = dev_alloc_name(local->mdev, local->mdev->name); - if (result < 0) { - rtnl_unlock(); + if (result < 0) goto fail_dev; - } memcpy(local->mdev->dev_addr, local->hw.wiphy->perm_addr, ETH_ALEN); SET_NETDEV_DEV(local->mdev, wiphy_dev(local->hw.wiphy)); -- 1.4.4.2 - To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html