]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc6be51b353f2bca822e73889fc861e207c550e6e
treed3d8a2284aed0b0aa0fe5d83ceb8e320bca0071e
parent10ec630405211fbdd3996a5656515d43f3b592da
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