Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9828b017 authored by Luis R. Rodriguez's avatar Luis R. Rodriguez Committed by John W. Linville
Browse files

cfg80211: use goto out on country IE reg hint failure



This has no functional changes.

Acked-by: default avatarJohannes Berg <johannes@sipsolutions.net>
Signed-off-by: default avatarLuis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 056508dc
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -1774,10 +1774,8 @@ void regulatory_hint_11d(struct wiphy *wiphy,

	mutex_lock(&cfg80211_mutex);

	if (unlikely(!last_request)) {
		mutex_unlock(&cfg80211_mutex);
		return;
	}
	if (unlikely(!last_request))
		goto out;

	/* IE len must be evenly divisible by 2 */
	if (country_ie_len & 0x01)