cancel pending work on shutting down wifi to prevent hangs
This commit is contained in:
parent
fdff755d81
commit
5934ac1393
|
@ -310,6 +310,8 @@ static void mwifiex_pcie_remove(struct pci_dev *pdev)
|
|||
mwifiex_init_shutdown_fw(priv, MWIFIEX_FUNC_SHUTDOWN);
|
||||
}
|
||||
|
||||
cancel_work_sync(&card->work);
|
||||
|
||||
mwifiex_remove_card(adapter);
|
||||
}
|
||||
|
||||
|
|
|
@ -399,6 +399,8 @@ mwifiex_sdio_remove(struct sdio_func *func)
|
|||
mwifiex_init_shutdown_fw(priv, MWIFIEX_FUNC_SHUTDOWN);
|
||||
}
|
||||
|
||||
cancel_work_sync(&card->work);
|
||||
|
||||
mwifiex_remove_card(adapter);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue