summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGovind Singh <govinds@codeaurora.org>2017-09-05 13:04:17 +0530
committerGovind Singh <govinds@codeaurora.org>2017-09-05 14:30:13 +0530
commitf63078dc3eeaf2cd52adc8425a16b27f07de647e (patch)
tree8db969b27d8fd9a659451cfc0159a5645f14143e
parentaa749e5dd6eb4e0beb4709b6d84b3c82bec56aae (diff)
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
-rw-r--r--core/dp/htt/htt_rx.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/dp/htt/htt_rx.c b/core/dp/htt/htt_rx.c
index 194d72995e33..fc5cd45e5dbc 100644
--- a/core/dp/htt/htt_rx.c
+++ b/core/dp/htt/htt_rx.c
@@ -3496,8 +3496,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);