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:
Govind Singh 2017-09-05 13:04:17 +05:30 • committed by snandini
commit d062a9e434

View file

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