]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
staging: wilc1000: flush the workqueue before deinit the host
authorAdham Abozaeid <adham.abozaeid@microchip.com>
Mon, 22 Jul 2019 21:38:44 +0000 (21:38 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Aug 2019 08:10:50 +0000 (10:10 +0200)
commit fb2b055b7e6e44efda737c7c92f46c0868bb04e5 upstream.

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

Signed-off-by: Adham Abozaeid <adham.abozaeid@microchip.com>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20190722213837.21952-1-adham.abozaeid@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c

index f6825727bf7741501c32798ba8bb9e706bc5767a..3592b545246c21814c1c081001413913d0098427 100644 (file)
@@ -1789,6 +1789,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);