diff options
author | David S. Miller <davem@davemloft.net> | 2009-06-07 07:24:21 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-06-07 07:24:21 -0400 |
commit | b1bc81a0ef86b86fa410dd303d84c8c7bd09a64d (patch) | |
tree | a0d2e6dd179e5d057776edd0ed865bc744dfa54d /net/wireless/reg.c | |
parent | a93958ac980f0ce594ad90657ecbc595ff157a40 (diff) | |
parent | 0c0c9e7076b69f93678e4ec711e2bf237398e623 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6
Diffstat (limited to 'net/wireless/reg.c')
-rw-r--r-- | net/wireless/reg.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/net/wireless/reg.c b/net/wireless/reg.c index f87ac1df2df5..ea4c299fbe3b 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c | |||
@@ -2171,7 +2171,13 @@ static int __set_regdom(const struct ieee80211_regdomain *rd) | |||
2171 | * the country IE rd with what CRDA believes that country should have | 2171 | * the country IE rd with what CRDA believes that country should have |
2172 | */ | 2172 | */ |
2173 | 2173 | ||
2174 | BUG_ON(!country_ie_regdomain); | 2174 | /* |
2175 | * Userspace could have sent two replies with only | ||
2176 | * one kernel request. By the second reply we would have | ||
2177 | * already processed and consumed the country_ie_regdomain. | ||
2178 | */ | ||
2179 | if (!country_ie_regdomain) | ||
2180 | return -EALREADY; | ||
2175 | BUG_ON(rd == country_ie_regdomain); | 2181 | BUG_ON(rd == country_ie_regdomain); |
2176 | 2182 | ||
2177 | /* | 2183 | /* |