aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdham Abozaeid <[email protected]>2019-07-22 21:38:44 +0000
committerGreg Kroah-Hartman <[email protected]>2019-07-25 09:38:15 +0200
commitfb2b055b7e6e44efda737c7c92f46c0868bb04e5 (patch)
tree8a08570353f3662ed349be62e2a71c3f6b4766d7
parent66665bb9979246729562a09fcdbb101c83127989 (diff)
staging: wilc1000: flush the workqueue before deinit the host
Before deinitializing the host interface, the workqueue should be flushed to handle any pending deferred work Signed-off-by: Adham Abozaeid <[email protected]> Cc: stable <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r--drivers/staging/wilc1000/wilc_wfi_cfgoperations.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
index d72fdd333050..736eedef23b6 100644
--- a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
+++ b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
@@ -1969,6 +1969,7 @@ void wilc_deinit_host_int(struct net_device *net)
priv->p2p_listen_state = false;
+ flush_workqueue(vif->wilc->hif_workqueue);
mutex_destroy(&priv->scan_req_lock);
ret = wilc_deinit(vif);