wl12xx: lock the RCU when accessing sta via ieee80211_find_sta()
authorLuciano Coelho <coelho@ti.com>
Tue, 11 Jan 2011 18:07:21 +0000 (19:07 +0100)
committerLuciano Coelho <coelho@ti.com>
Mon, 24 Jan 2011 20:11:52 +0000 (22:11 +0200)
commit2d6e4e76d1e73886cb087142e70e2beaabb94b79
treed3d8a2284aed0b0aa0fe5d83ceb8e320bca0071e
parenta8aaaf53d5f22f7f60ca5af26fc85c2940575c37
wl12xx: lock the RCU when accessing sta via ieee80211_find_sta()

We were calling ieee80211_find_sta() and the sta returned by it
without locking the RCU, which is required by mac80211.

Fix this and reorganize slightly the area of the code where the sta is
used.

Reported-by: Jonathan DE CESCO <jonathanc@ti.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/wl12xx/main.c