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)
commitba9797b2a7a5c1dfaa1cc189bbb9493a6d8f03cf
tree096581114dd1fab21cbe3e389dc9a24e218fc5f8
parent634e99f0d4dab19228d7d6c7c6dcf04f30a80a6a
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