Explorar o código

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
Govind Singh %!s(int64=7) %!d(string=hai) anos
pai
achega
d062a9e434
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      core/dp/htt/htt_rx.c

+ 3 - 1
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);