Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 315581
b: refs/heads/master
c: 9590853
h: refs/heads/master
i:
  315579: 00310c9
v: v3
  • Loading branch information
Kalle Valo authored and Johannes Berg committed Jul 17, 2012
1 parent 614a67d commit 4766862
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 84f10708f73254878246772cead70a2eb6a123f2
refs/heads/master: 959085352b7c44ff9bae4d8a4d76146193260e4c
5 changes: 4 additions & 1 deletion trunk/net/wireless/reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -2128,7 +2128,7 @@ static int __set_regdom(const struct ieee80211_regdomain *rd)
* checking if the alpha2 changes if CRDA was already called
*/
if (!regdom_changes(rd->alpha2))
return -EINVAL;
return -EALREADY;
}

/*
Expand Down Expand Up @@ -2248,6 +2248,9 @@ int set_regdom(const struct ieee80211_regdomain *rd)
/* Note that this doesn't update the wiphys, this is done below */
r = __set_regdom(rd);
if (r) {
if (r == -EALREADY)
reg_set_request_processed();

kfree(rd);
mutex_unlock(&reg_mutex);
return r;
Expand Down

0 comments on commit 4766862

Please sign in to comment.