]> git.baikalelectronics.ru Git - kernel.git/commit
mt76x2: init: disable all pending tasklets during device removal
authorLorenzo Bianconi <lorenzo.bianconi@redhat.com>
Tue, 23 Jan 2018 09:03:24 +0000 (10:03 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 24 Jan 2018 15:17:35 +0000 (17:17 +0200)
commit9d84230402411d50e8a3f3e77d1e0143645c880c
tree096581114dd1fab21cbe3e389dc9a24e218fc5f8
parent733962264d2e94c1aed29d26bafb065a9e8f8c2e
mt76x2: init: disable all pending tasklets during device removal

There is a possible race in mt76x2_stop_hardware() since pre_tbtt and
dfs tasklets could run during driver cleanup. Fix it disabling all
pending tasklets during device removal

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Acked-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mediatek/mt76/mt76x2_init.c