public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH next] wifi: rtw89: unlock on error path in rtw89_ops_unassign_vif_chanctx()
@ 2024-10-21  9:14 Dan Carpenter
  2024-10-22  3:27 ` Zong-Zhe Yang
  2024-10-25  2:28 ` Ping-Ke Shih
  0 siblings, 2 replies; 7+ messages in thread
From: Dan Carpenter @ 2024-10-21  9:14 UTC (permalink / raw)
  To: Zong-Zhe Yang
  Cc: Ping-Ke Shih, Kalle Valo, linux-wireless, linux-kernel,
	kernel-janitors

We need to call mutex_unlock() on this error path.

Fixes: aad0394e7a02 ("wifi: rtw89: tweak driver architecture for impending MLO support")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
---
 drivers/net/wireless/realtek/rtw89/mac80211.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/wireless/realtek/rtw89/mac80211.c b/drivers/net/wireless/realtek/rtw89/mac80211.c
index 1ee63a85308f..565347a6e1e6 100644
--- a/drivers/net/wireless/realtek/rtw89/mac80211.c
+++ b/drivers/net/wireless/realtek/rtw89/mac80211.c
@@ -1373,6 +1373,7 @@ static void rtw89_ops_unassign_vif_chanctx(struct ieee80211_hw *hw,
 
 	rtwvif_link = rtwvif->links[link_conf->link_id];
 	if (unlikely(!rtwvif_link)) {
+		mutex_unlock(&rtwdev->mutex);
 		rtw89_err(rtwdev,
 			  "%s: rtwvif link (link_id %u) is not active\n",
 			  __func__, link_conf->link_id);
-- 
2.45.2


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-10-25  2:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-21  9:14 [PATCH next] wifi: rtw89: unlock on error path in rtw89_ops_unassign_vif_chanctx() Dan Carpenter
2024-10-22  3:27 ` Zong-Zhe Yang
2024-10-22  3:32   ` Ping-Ke Shih
2024-10-23  8:35     ` Dan Carpenter
2024-10-23  9:38       ` Kalle Valo
2024-10-23 10:06         ` Dan Carpenter
2024-10-25  2:28 ` Ping-Ke Shih

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox