OSDN Git Service

wil6210: protect list of pending wmi events during flush
authorHamad Kadmany <qca_hkadmany@qca.qualcomm.com>
Wed, 8 Mar 2017 11:52:16 +0000 (13:52 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 9 Mar 2017 08:04:27 +0000 (10:04 +0200)
commitf6b29b6585593b28c4fde142727bfef350372b83
tree43f38f7e9518d4fe322ff516512466f587390d1f
parentbcdd49b074d0ea48f54bc6d24a66efab8688b43a
wil6210: protect list of pending wmi events during flush

When flush is done, pending events list is manipulated
without taking the proper spinlock, which could lead to
memory corruption if list is manipulated by wmi worker
or by interrupt routine.

Signed-off-by: Hamad Kadmany <qca_hkadmany@qca.qualcomm.com>
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/wil6210/wmi.c