Skip to content

Commit

Permalink
cfg80211: use goto out on country IE reg hint failure
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Luis R. Rodriguez authored and John W. Linville committed Aug 4, 2009
1 parent 056508d commit 9828b01
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions net/wireless/reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9828b01

Please sign in to comment.