Skip to contentSkip to conversation

staging: wilc1000: flush the workqueue before deinit the host ifc

PATCH Superseded [email protected] 1 participant 1 message Jul 22, 2019 Staging

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: wilc1000: flush the workqueue before deinit the host ifc

From: Adham Abozaeid <[email protected]>

Before deinitializing the host interface, the workqueue should be flushed to handle any pending deferred work

---
 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 1 +
 1 file changed, 1 insertion(+)
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c +1 -0
index 63c38562ad1a..b0a6045327cc 100644
@@ -2544,6 +2544,7 @@ void wilc_deinit_host_int(struct net_device *net)
 
 	vif->wilc->p2p_listen_state = false;
 
+	flush_workqueue(vif->wilc->hif_workqueue);
 	mutex_destroy(&priv->scan_req_lock);
 	ret = wilc_deinit(vif);
 
Signature · 1 line
2.17.1