]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
Wireless: nl80211, fix lock imbalance
authorJiri Slaby <jirislaby@gmail.com>
Sat, 20 Jun 2009 10:31:11 +0000 (12:31 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 7 Jul 2009 16:55:25 +0000 (12:55 -0400)
Don't forget to unlock cfg80211_mutex in one fail path of
nl80211_set_wiphy.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/nl80211.c

index 241bddd0b4f19b2bb17009a295bf023345bfdc7c..43bdb1372caee29772f63397dd7ce1f7e7edd963 100644 (file)
@@ -447,6 +447,7 @@ static int nl80211_set_wiphy(struct sk_buff *skb, struct genl_info *info)
 
        rdev = __cfg80211_drv_from_info(info);
        if (IS_ERR(rdev)) {
+               mutex_unlock(&cfg80211_mutex);
                result = PTR_ERR(rdev);
                goto unlock;
        }