qcacld-3.0: release each skb in loop from nbuf tracking
Current debug code incorrectly releases parent skb multiple times
while traversing the skb_list. Fix the bug by releasing individual
skbs in a list.
Change-Id: I7047dfc07407275aa7f06cb22840023331ec186f
CRs-Fixed: 2040538
diff --git a/core/hdd/src/wlan_hdd_softap_tx_rx.c b/core/hdd/src/wlan_hdd_softap_tx_rx.c
index 927f359..d502744 100644
--- a/core/hdd/src/wlan_hdd_softap_tx_rx.c
+++ b/core/hdd/src/wlan_hdd_softap_tx_rx.c
@@ -760,7 +760,7 @@
/* Remove SKB from internal tracking table before submitting
* it to stack
*/
- qdf_net_buf_debug_release_skb(rxBuf);
+ qdf_net_buf_debug_release_skb(skb);
if (hdd_napi_enabled(HDD_NAPI_ANY) &&
!pHddCtx->enableRxThread)
rxstat = netif_receive_skb(skb);