]> git.karo-electronics.de Git - linux-beck.git/commit
ath10k: fix locking for WEP keys
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Tue, 25 Nov 2014 06:16:59 +0000 (11:46 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 26 Nov 2014 06:37:26 +0000 (08:37 +0200)
commitae1671318e602860970c7020f3b23f2349dda757
tree18f09160fb4ef2dbdd8b0318458c74ee0efc33bc
parent504f6cdf4ac3dfcf645453b5cd65dcc9aed0e1b9
ath10k: fix locking for WEP keys

peer->keys needs to be protected by data_lock
since it is also accessed from the WMI path.

Both install() and clear() routines for peer
keys modify the key contents, so use the data_lock
to avoid races.

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/core.h
drivers/net/wireless/ath/ath10k/mac.c