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
This commit is contained in:
Amar Singhal 2018-09-04 12:35:53 -07:00
commit ddd2cf98d2

View file

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