diff options
Diffstat (limited to 'net/wireless')
-rw-r--r-- | net/wireless/reg.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/net/wireless/reg.c b/net/wireless/reg.c index fb40428a5946..2d1d183ae6f0 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c | |||
@@ -1774,10 +1774,8 @@ void regulatory_hint_11d(struct wiphy *wiphy, | |||
1774 | 1774 | ||
1775 | mutex_lock(&cfg80211_mutex); | 1775 | mutex_lock(&cfg80211_mutex); |
1776 | 1776 | ||
1777 | if (unlikely(!last_request)) { | 1777 | if (unlikely(!last_request)) |
1778 | mutex_unlock(&cfg80211_mutex); | 1778 | goto out; |
1779 | return; | ||
1780 | } | ||
1781 | 1779 | ||
1782 | /* IE len must be evenly divisible by 2 */ | 1780 | /* IE len must be evenly divisible by 2 */ |
1783 | if (country_ie_len & 0x01) | 1781 | if (country_ie_len & 0x01) |