mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
wcn36xx: Don't use the destroyed hal_mutex
[ Upstream commit d536288822 ]
ieee80211_unregister_hw() might invoke operations to stop the interface,
that uses the hal_mutex. So don't destroy it until after we're done
using it.
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
72eff92d84
commit
93e1956ddd
@@ -1165,11 +1165,12 @@ static int wcn36xx_remove(struct platform_device *pdev)
|
||||
wcn36xx_dbg(WCN36XX_DBG_MAC, "platform remove\n");
|
||||
|
||||
release_firmware(wcn->nv);
|
||||
mutex_destroy(&wcn->hal_mutex);
|
||||
|
||||
ieee80211_unregister_hw(hw);
|
||||
iounmap(wcn->dxe_base);
|
||||
iounmap(wcn->ccu_base);
|
||||
|
||||
mutex_destroy(&wcn->hal_mutex);
|
||||
ieee80211_free_hw(hw);
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user