From 66698093e1810f79931594a61c8458a0b5bb83e3 Mon Sep 17 00:00:00 2001 From: Paul Zhang Date: Tue, 17 Oct 2017 13:51:09 +0800 Subject: [PATCH] qcacmn: fix spinlock paring issue spin_lock/spin_unlock is not pairing. Change-Id: Ib2cb73f542deee8bf4217daa731af49d07eaf7be CRs-Fixed: 2105081 --- dp/wifi3.0/dp_tx_flow_control.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dp/wifi3.0/dp_tx_flow_control.c b/dp/wifi3.0/dp_tx_flow_control.c index 3d23c0c79393..2b0790c26a30 100644 --- a/dp/wifi3.0/dp_tx_flow_control.c +++ b/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 +