mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
qcacld-3.0: Unlock rx hash lock in error cases
RX hash lock is not unlocked in case hash_table is NULL and context is returned immediately without unlocking the rx hash lock. Unlock the rx hash lock before returning from the context. Change-Id: I4ec2c272ac92cf5c0e93c64e34ce96cafe5cc11c CRs-Fixed: 2104297
This commit is contained in:
parent
02d8fa53b7
commit
d062a9e434
1 changed files with 3 additions and 1 deletions
|
|
@ -3226,8 +3226,10 @@ qdf_nbuf_t htt_rx_hash_list_lookup(struct htt_pdev_t *pdev,
|
|||
|
||||
qdf_spin_lock_bh(&(pdev->rx_ring.rx_hash_lock));
|
||||
|
||||
if (!pdev->rx_ring.hash_table)
|
||||
if (!pdev->rx_ring.hash_table) {
|
||||
qdf_spin_unlock_bh(&(pdev->rx_ring.rx_hash_lock));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
i = RX_HASH_FUNCTION(paddr);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue