]> git.baikalelectronics.ru Git - kernel.git/commit
wl3501_cs: Add spinlock to wl3501_reset
authorPavel Andrianov <andrianov@ispras.ru>
Tue, 2 Aug 2016 09:41:53 +0000 (12:41 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 3 Sep 2016 10:01:18 +0000 (13:01 +0300)
commit841a52e2beded79332ef249134c379f296def47d
tree27ebd6c1668fd09df467db60337e43752112d7e5
parent7ea5ff68bced128715e420d42ec9a9a9ec2cd655
wl3501_cs: Add spinlock to wl3501_reset

Likely wl3501_reset should acquire spinlock as wl3501_{open, close}.
One of calls of wl3501_reset has been already protected.
The others were unprotected and might lead to a race condition.
The patch adds spinlock into the wl3501_reset and removes it from
wl3501_tx_timeout.

Found by Linux Driver Verification project (linuxtesting.org)

Signed-off-by: Pavel Andrianov <andrianov@ispras.ru>
Acked-by: Vaishali Thakkar <vaishali.thakkar@oracle.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/wl3501_cs.c