diff options
author | Luis R. Rodriguez <mcgrof@qca.qualcomm.com> | 2011-11-28 16:47:15 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-11-30 14:16:31 -0500 |
commit | a042994dd377d86bff9446ee76151ceb6267c9ba (patch) | |
tree | 2e7a30ca3f6ce9ecb06179abce92bc9520981506 /net/wireless/wext-core.c | |
parent | 2a1e0fd175dcfd72096ba9291d31e3b1b5342e60 (diff) | |
download | op-kernel-dev-a042994dd377d86bff9446ee76151ceb6267c9ba.zip op-kernel-dev-a042994dd377d86bff9446ee76151ceb6267c9ba.tar.gz |
cfg80211: fix race on init and driver registration
There is a theoretical race that if hit will trigger
a crash. The race is between when we issue the first
regulatory hint, regulatory_hint_core(), gets processed
by the workqueue and between when the first device
gets registered to the wireless core. This is not easy
to reproduce but it was easy to do so through the
regulatory simulator I have been working on. This
is a port of the fix I implemented there [1].
[1] https://github.com/mcgrof/regsim/commit/a246ccf81f059cb662eee288aa13100f631e4cc8
Cc: stable@vger.kernel.org
Cc: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/wireless/wext-core.c')
0 files changed, 0 insertions, 0 deletions