From ddd2cf98d246d18f4587dc6b75025c893c4800e6 Mon Sep 17 00:00:00 2001 From: Amar Singhal Date: Tue, 4 Sep 2018 12:35:53 -0700 Subject: [PATCH] qcacld-3.0: Unlock the rx_ring spin-lock appropriately Unlock the rx_ring.rx_hash_lock spin-lock when returning due to failure to do smmu map_unmap. Change-Id: I1b905c0ad529c80f78807c030920121ee0909825 CRs-Fixed: 2299785 --- core/dp/htt/htt_rx_ll.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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;