Selaa lähdekoodia

qcacmn: fix spinlock paring issue

spin_lock/spin_unlock is not pairing.

Change-Id: Ib2cb73f542deee8bf4217daa731af49d07eaf7be
CRs-Fixed: 2105081
Paul Zhang 7 vuotta sitten
vanhempi
sitoutus
66698093e1
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. 3 1
      dp/wifi3.0/dp_tx_flow_control.c

+ 3 - 1
dp/wifi3.0/dp_tx_flow_control.c

@@ -147,8 +147,10 @@ struct dp_tx_desc_pool_s *dp_tx_create_flow_pool(struct dp_soc *soc,
 		return pool;
 	}
 
-	if (dp_tx_desc_pool_alloc(soc, flow_pool_id, flow_pool_size))
+	if (dp_tx_desc_pool_alloc(soc, flow_pool_id, flow_pool_size)) {
+		qdf_spin_unlock_bh(&pool->flow_pool_lock);
 		return NULL;
+	}
 
 	stop_threshold = wlan_cfg_get_tx_flow_stop_queue_th(soc->wlan_cfg_ctx);
 	start_threshold = stop_threshold +