diff --git a/core/dp/htt/htt_rx_ll.c b/core/dp/htt/htt_rx_ll.c index 260d0907f043..80d6b3272aff 100644 --- a/core/dp/htt/htt_rx_ll.c +++ b/core/dp/htt/htt_rx_ll.c @@ -2289,12 +2289,16 @@ static QDF_STATUS htt_rx_hash_smmu_map(bool map, struct htt_pdev_t *pdev) HTT_RX_BUF_SIZE); ret = cds_smmu_map_unmap(map, 1, &mem_map_table); - if (ret) + if (ret) { + qdf_spin_unlock_bh( + &pdev->rx_ring.rx_hash_lock); return QDF_STATUS_E_FAILURE; + } } list_iter = list_iter->next; } } + qdf_spin_unlock_bh(&pdev->rx_ring.rx_hash_lock); return QDF_STATUS_SUCCESS;