mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-09 06:33:34 +00:00
cfg80211: use goto out on country IE reg hint failure
This has no functional changes. Acked-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
056508dcb6
commit
9828b0170e
@ -1774,10 +1774,8 @@ void regulatory_hint_11d(struct wiphy *wiphy,
|
|||||||
|
|
||||||
mutex_lock(&cfg80211_mutex);
|
mutex_lock(&cfg80211_mutex);
|
||||||
|
|
||||||
if (unlikely(!last_request)) {
|
if (unlikely(!last_request))
|
||||||
mutex_unlock(&cfg80211_mutex);
|
goto out;
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* IE len must be evenly divisible by 2 */
|
/* IE len must be evenly divisible by 2 */
|
||||||
if (country_ie_len & 0x01)
|
if (country_ie_len & 0x01)
|
||||||
|
Loading…
Reference in New Issue
Block a user