mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
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:
parent
f0144b67ab
commit
ddd2cf98d2
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue