From d062a9e4340f4f45db0ab92fc6bbbf80a88ef145 Mon Sep 17 00:00:00 2001 From: Govind Singh Date: Tue, 5 Sep 2017 13:04:17 +0530 Subject: [PATCH] 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 --- core/dp/htt/htt_rx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/dp/htt/htt_rx.c b/core/dp/htt/htt_rx.c index 1e6bd0b00974..43fbc3b76d26 100644 --- a/core/dp/htt/htt_rx.c +++ b/core/dp/htt/htt_rx.c @@ -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);