Home Home > GIT Browse > stable-xen
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2019-07-28 09:55:47 +0200
committerTakashi Iwai <tiwai@suse.de>2019-07-28 09:57:06 +0200
commit0cbc4fbf767719e3fefd7cc1ebabe312ae0f1471 (patch)
tree050a921f8bfaf7143c3e1baf21ba9eaf7e67a6fb
parent167dd5ae56cd274483e035ef8c22d81300a506d6 (diff)
ath10k: destroy sdio workqueue while remove sdio module
(bsc#1111666). suse-commit: 328e900ccc15dfa4a78f967fb9caa6896df47b1d
-rw-r--r--drivers/net/wireless/ath/ath10k/sdio.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath10k/sdio.c b/drivers/net/wireless/ath/ath10k/sdio.c
index cb527a21f1ac..686759b5613f 100644
--- a/drivers/net/wireless/ath/ath10k/sdio.c
+++ b/drivers/net/wireless/ath/ath10k/sdio.c
@@ -2073,6 +2073,9 @@ static void ath10k_sdio_remove(struct sdio_func *func)
cancel_work_sync(&ar_sdio->wr_async_work);
ath10k_core_unregister(ar);
ath10k_core_destroy(ar);
+
+ flush_workqueue(ar_sdio->workqueue);
+ destroy_workqueue(ar_sdio->workqueue);
}
static const struct sdio_device_id ath10k_sdio_devices[] = {