diff options
Diffstat (limited to 'net/wireless/reg.c')
-rw-r--r-- | net/wireless/reg.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/net/wireless/reg.c b/net/wireless/reg.c index d44f3b5481ad..b47445219a48 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c | |||
@@ -1261,11 +1261,13 @@ void regulatory_hint_11d(struct wiphy *wiphy, | |||
1261 | u32 checksum = 0; | 1261 | u32 checksum = 0; |
1262 | enum environment_cap env = ENVIRON_ANY; | 1262 | enum environment_cap env = ENVIRON_ANY; |
1263 | 1263 | ||
1264 | if (!last_request) | ||
1265 | return; | ||
1266 | |||
1267 | mutex_lock(&cfg80211_mutex); | 1264 | mutex_lock(&cfg80211_mutex); |
1268 | 1265 | ||
1266 | if (unlikely(!last_request)) { | ||
1267 | mutex_unlock(&cfg80211_mutex); | ||
1268 | return; | ||
1269 | } | ||
1270 | |||
1269 | /* IE len must be evenly divisible by 2 */ | 1271 | /* IE len must be evenly divisible by 2 */ |
1270 | if (country_ie_len & 0x01) | 1272 | if (country_ie_len & 0x01) |
1271 | goto out; | 1273 | goto out; |