public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH next] wifi: ath12k: clean up on error in ath12k_dp_setup()
@ 2025-12-18  7:44 Dan Carpenter
  2025-12-19  5:24 ` Vasanthakumar Thiagarajan
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Dan Carpenter @ 2025-12-18  7:44 UTC (permalink / raw)
  To: Harsh Kumar Bijlani
  Cc: Jeff Johnson, Ripan Deuri, Vasanthakumar Thiagarajan,
	Baochen Qiang, linux-wireless, ath12k, linux-kernel,
	kernel-janitors

Destroy the rhash_tbl before returning the error code.

Fixes: a88cf5f71adf ("wifi: ath12k: Add hash table for ath12k_dp_link_peer")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
---
 drivers/net/wireless/ath/ath12k/dp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/ath/ath12k/dp.c b/drivers/net/wireless/ath/ath12k/dp.c
index 9f05eea6695a..ab54c8a84d3e 100644
--- a/drivers/net/wireless/ath/ath12k/dp.c
+++ b/drivers/net/wireless/ath/ath12k/dp.c
@@ -1513,7 +1513,7 @@ static int ath12k_dp_setup(struct ath12k_base *ab)
 					HAL_WBM_IDLE_LINK, srng, n_link_desc);
 	if (ret) {
 		ath12k_warn(ab, "failed to setup link desc: %d\n", ret);
-		return ret;
+		goto rhash_destroy;
 	}
 
 	ret = ath12k_dp_cc_init(ab);
-- 
2.51.0


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

end of thread, other threads:[~2026-01-16  1:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-18  7:44 [PATCH next] wifi: ath12k: clean up on error in ath12k_dp_setup() Dan Carpenter
2025-12-19  5:24 ` Vasanthakumar Thiagarajan
2025-12-19  7:18   ` Dan Carpenter
2025-12-19  8:03     ` Dan Carpenter
2025-12-19  5:42 ` Baochen Qiang
2025-12-22 10:25 ` kernel test robot
2026-01-16  1:26 ` Jeff Johnson

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