From 99868ac3ca63001edcb5f4586db5846e3a38a727 Mon Sep 17 00:00:00 2001 From: Venkata Sharath Chandra Manchala Date: Wed, 31 May 2017 13:50:39 -0700 Subject: [PATCH] qcacmn: Unlock the tso segment descriptor pool Unlock the tso segment and tso common segment descriptor pool if there are no descriptors available in the freelist. Change-Id: I5c09e381769cdaa914e03ced24dccae8aea90897 CRs-Fixed: 2042950 --- dp/wifi3.0/dp_tx_desc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dp/wifi3.0/dp_tx_desc.c b/dp/wifi3.0/dp_tx_desc.c index 205e463b8f..3dd751fc11 100644 --- a/dp/wifi3.0/dp_tx_desc.c +++ b/dp/wifi3.0/dp_tx_desc.c @@ -358,6 +358,7 @@ void dp_tx_tso_desc_pool_free(struct dp_soc *soc, uint8_t pool_id) c_element = soc->tx_tso_desc[pool_id].freelist; if (!c_element) { + TX_DESC_LOCK_UNLOCK(&soc->tx_tso_desc[pool_id].lock); QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_ERROR, FL("Desc Pool Corrupt %d"), pool_id); return; @@ -455,6 +456,7 @@ void dp_tx_tso_num_seg_pool_free(struct dp_soc *soc, uint8_t pool_id) c_element = soc->tx_tso_num_seg[pool_id].freelist; if (!c_element) { + TX_DESC_LOCK_UNLOCK(&soc->tx_tso_desc[pool_id].lock); QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_ERROR, FL("Desc Pool Corrupt %d"), pool_id); return;