* [PATCH -next] ath11k: fix missing unlock on error in ath11k_wow_op_resume()
@ 2022-04-08 3:09 Yang Yingliang
2022-04-23 9:28 ` Kalle Valo
0 siblings, 1 reply; 2+ messages in thread
From: Yang Yingliang @ 2022-04-08 3:09 UTC (permalink / raw)
To: linux-kernel, netdev, linux-wireless, ath11k
Cc: quic_kvalo, quic_cjhuang, davem, kuba
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")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
---
drivers/net/wireless/ath/ath11k/wow.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wireless/ath/ath11k/wow.c b/drivers/net/wireless/ath/ath11k/wow.c
index 6c2611f93739..9d088cebef03 100644
--- a/drivers/net/wireless/ath/ath11k/wow.c
+++ b/drivers/net/wireless/ath/ath11k/wow.c
@@ -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);
--
2.25.1
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-04-23 9:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-08 3:09 [PATCH -next] ath11k: fix missing unlock on error in ath11k_wow_op_resume() Yang Yingliang
2022-04-23 9:28 ` Kalle Valo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®