cfg80211: protect first access of last_request on 11d hint under mutex
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Sat, 21 Feb 2009 05:04:27 +0000 (00:04 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 27 Feb 2009 19:52:56 +0000 (14:52 -0500)
commitd335fe6391c2d86582cf71ef5773a161ee604608
tree4a5af6c209c73fc16e54f71c3a0e2ba046f0fcf9
parent806a9e39670be4f1f861c346ec102a79e81b90c3
cfg80211: protect first access of last_request on 11d hint under mutex

We were not protecting last_request there is a small possible race
between an 11d hint and another routine which calls reset_regdomains()
which can prevent a valid country IE from being processed. This is
not critical as it will still be procesed soon after but locking prior
to it is correct.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/reg.c