mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-07 00:59:06 +00:00
wil6210: remove erroneous wiphy locking
We already hold the wiphy lock in all cases when we get
here, so this would deadlock, remove the erroneous locking.
Fixes: a05829a722
("cfg80211: avoid holding the RTNL when calling the driver")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210426212929.83f1de07c2cd.I630a2a00eff185ba0452324b3d3f645e01128a95@changeid
This commit is contained in:
parent
75596eabd6
commit
8f78caa226
1 changed files with 0 additions and 2 deletions
|
@ -2842,9 +2842,7 @@ void wil_p2p_wdev_free(struct wil6210_priv *wil)
|
||||||
wil->radio_wdev = wil->main_ndev->ieee80211_ptr;
|
wil->radio_wdev = wil->main_ndev->ieee80211_ptr;
|
||||||
mutex_unlock(&wil->vif_mutex);
|
mutex_unlock(&wil->vif_mutex);
|
||||||
if (p2p_wdev) {
|
if (p2p_wdev) {
|
||||||
wiphy_lock(wil->wiphy);
|
|
||||||
cfg80211_unregister_wdev(p2p_wdev);
|
cfg80211_unregister_wdev(p2p_wdev);
|
||||||
wiphy_unlock(wil->wiphy);
|
|
||||||
kfree(p2p_wdev);
|
kfree(p2p_wdev);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue