diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2024-10-21 12:14:39 +0300 |
---|---|---|
committer | Ping-Ke Shih <pkshih@realtek.com> | 2024-10-25 10:26:46 +0800 |
commit | ac4f4e5a203927e555107db6e781e85f241720e1 (patch) | |
tree | c37a6ad6a43d6dc7b95db4f2867d6dfbc09be85c /drivers/net/wireless/realtek | |
parent | f16c40acd31901ad0ba2554b60e0e2b0c7b59cde (diff) | |
download | linux-stable-ac4f4e5a203927e555107db6e781e85f241720e1.tar.gz linux-stable-ac4f4e5a203927e555107db6e781e85f241720e1.tar.bz2 linux-stable-ac4f4e5a203927e555107db6e781e85f241720e1.zip |
wifi: rtw89: unlock on error path in rtw89_ops_unassign_vif_chanctx()
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>
Reviewed-by: Zong-Zhe Yang <kevin_yang@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/8683a712-ffc2-466b-8382-0b264719f8ef@stanley.mountain
Diffstat (limited to 'drivers/net/wireless/realtek')
-rw-r--r-- | drivers/net/wireless/realtek/rtw89/mac80211.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |