diff mbox series

[qca6390-bringup] ath11k: fix idr_alloc_u32 warning

Message ID 1576812600-25027-1-git-send-email-cjhuang@codeaurora.org (mailing list archive)
State New, archived
Headers show
Series [qca6390-bringup] ath11k: fix idr_alloc_u32 warning | expand

Commit Message

Carl Huang Dec. 20, 2019, 3:30 a.m. UTC
There is a typo error when calling idr_init and spin_lock_init for
rx_mon_status_refill_ring. It's 'j' not 'i'.

Signed-off-by: Carl Huang <cjhuang@codeaurora.org>
---
 drivers/net/wireless/ath/ath11k/dp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/drivers/net/wireless/ath/ath11k/dp.c b/drivers/net/wireless/ath/ath11k/dp.c
index 3f35c25..af2a92e 100644
--- a/drivers/net/wireless/ath/ath11k/dp.c
+++ b/drivers/net/wireless/ath/ath11k/dp.c
@@ -839,8 +839,8 @@  int ath11k_dp_pdev_alloc(struct ath11k_base *ab)
 		atomic_set(&dp->num_tx_pending, 0);
 		init_waitqueue_head(&dp->tx_empty_waitq);
 		for (j = 0; j < MAX_MACS_PER_PDEV; j++) {
-			idr_init(&dp->rx_mon_status_refill_ring[i].bufs_idr);
-			spin_lock_init(&dp->rx_mon_status_refill_ring[i].idr_lock);
+			idr_init(&dp->rx_mon_status_refill_ring[j].bufs_idr);
+			spin_lock_init(&dp->rx_mon_status_refill_ring[j].idr_lock);
 		}
 		idr_init(&dp->rxdma_mon_buf_ring.bufs_idr);
 		spin_lock_init(&dp->rxdma_mon_buf_ring.idr_lock);