]> git.baikalelectronics.ru Git - kernel.git/commit
rtlwifi: rtl8192ee: Fix potential race condition
authorLarry Finger <Larry.Finger@lwfinger.net>
Sat, 25 Jun 2016 18:37:44 +0000 (13:37 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 5 Jul 2016 14:31:42 +0000 (17:31 +0300)
commit93612a73a1eced3770d74c243a4ecee678c3308d
tree5b73a79be6a40a0b826ed8cf5202df3b309af048
parentc3479981625e9639c213ef13e3f3de6508248e58
rtlwifi: rtl8192ee: Fix potential race condition

Flag rfchange_inprogress in struct rtl_ps_ctl is protected by a spinlock
in most routines but not in rtl92ee_dm_watchdog(), which could
lead to a race condition. The necessary locking to prevent this condition
is added.

Reported-by: Pavel Andrianov <andrianov@ispras.ru>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Pavel Andrianov <andrianov@ispras.ru>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c