From: Wen Gong Date: Tue, 13 Jun 2023 09:19:45 +0000 (+0300) Subject: wifi: ath12k: fix conf_mutex in ath12k_mac_op_unassign_vif_chanctx() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=3a5d50f8eb4fcf3c69ae858020c49877e4eeaf05;p=linux.git wifi: ath12k: fix conf_mutex in ath12k_mac_op_unassign_vif_chanctx() "mutex_unlock(&ar->conf_mutex);" is always called at end of function ath12k_mac_op_unassign_vif_chanctx(), so delete this unlock to make sure lock/unlock is paired. Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0-03427-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.15378.4 Signed-off-by: Wen Gong Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/20230608104444.3134-1-quic_wgong@quicinc.com --- diff --git a/drivers/net/wireless/ath/ath12k/mac.c b/drivers/net/wireless/ath/ath12k/mac.c index a344211f5b536..1bb9802ef5696 100644 --- a/drivers/net/wireless/ath/ath12k/mac.c +++ b/drivers/net/wireless/ath/ath12k/mac.c @@ -5928,7 +5928,6 @@ ath12k_mac_op_unassign_vif_chanctx(struct ieee80211_hw *hw, } arvif->is_started = false; - mutex_unlock(&ar->conf_mutex); } ret = ath12k_mac_vdev_stop(arvif);