Add forgotten rtnl_unlock() in the error path of ieee80211_register_hw.

Signed-off-by: Jiri Benc <[EMAIL PROTECTED]>

---

 net/d80211/ieee80211.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

693ca0e679ae17dd34f5392886f99ba36f68940c
diff --git a/net/d80211/ieee80211.c b/net/d80211/ieee80211.c
index 3efba6a..036eca1 100644
--- a/net/d80211/ieee80211.c
+++ b/net/d80211/ieee80211.c
@@ -4449,8 +4449,10 @@ int ieee80211_register_hw(struct net_dev
        result = sysfs_create_link(&local->class_dev.kobj,
                                   &dev->class_dev.kobj,
                                   "master");
-       if (result < 0)
+       if (result < 0) {
+               rtnl_unlock();
                goto fail_masterlink;
+       }
        result = ieee80211_sysfs_add_netdevice(dev);
        rtnl_unlock();
        if (result < 0)
-- 
1.3.0

-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to