diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2009-05-13 17:04:41 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-07-02 16:50:10 -0700 |
commit | 0b4dbf904310eb56ef54b7a033f17651a0d0849f (patch) | |
tree | b9268b57d1eb8676be2c79824674cd5d05b62259 /drivers/net | |
parent | a08b8fc14b865bc751c6b83b1fab5f0ad3225c11 (diff) |
cfg80211: fix in nl80211_set_reg()
commit 61405e97788b1bc4e7c5be5b4ec04a73fc11bac2 upstream.
There is a race on access to last_request and its alpha2
through reg_is_valid_request() and us possibly processing
first another regulatory request on another CPU. We avoid
this improbably race by locking with the cfg80211_mutex as
we should have done in the first place. While at it add
the assert on locking on reg_is_valid_request().
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/net')
0 files changed, 0 insertions, 0 deletions