Skip to content

Commit

Permalink
Wireless: nl80211, fix lock imbalance
Browse files Browse the repository at this point in the history
Don't forget to unlock cfg80211_mutex in one fail path of
nl80211_set_wiphy.

Signed-off-by: Jiri Slaby <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
  • Loading branch information
jirislaby authored and linvjw committed Jul 7, 2009
1 parent 0ca1b08 commit 1f5fc70
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/wireless/nl80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1f5fc70

Please sign in to comment.