Skip to contentSkip to conversation

ath11k: fix missing unlock on error in ath11k_wow_op_resume()

PATCH In review Yang Yingliang 2 participants 2 messages Apr 8, 2022 – Apr 23, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath11k: fix missing unlock on error in ath11k_wow_op_resume()

Add the missing unlock before return from function ath11k_wow_op_resume() in the error handling case.

Fixes 90bf5c8d0f7e ("ath11k: purge rx pktlog when entering WoW")
---
 drivers/net/wireless/ath/ath11k/wow.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/ath/ath11k/wow.c +1 -1
index 6c2611f93739..9d088cebef03 100644
@@ -758,7 +758,7 @@ int ath11k_wow_op_resume(struct ieee80211_hw *hw)
 	ret = ath11k_dp_rx_pktlog_start(ar->ab);
 	if (ret) {
 		ath11k_warn(ar->ab, "failed to start rx pktlog from wow: %d\n", ret);
-		return ret;
+		goto exit;
 	}
 
 	ret = ath11k_wow_wakeup(ar->ab);
Signature · 1 line
2.25.1
#1 lore raw
Quoted 7 lines · Yang Yingliang

Add the missing unlock before return from function ath11k_wow_op_resume() in the error handling case.

Fixes 90bf5c8d0f7e ("ath11k: purge rx pktlog when entering WoW")

Patch applied to ath-next branch of ath.git, thanks.

605194411d73 ath11k: fix missing unlock on error in ath11k_wow_op_resume()

Signature · 9 lines
https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches


-- 
ath11k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath11k