@@ -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);
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(-)