Explorar o código

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
Manjunathappa Prakash %!s(int64=8) %!d(string=hai) anos
pai
achega
17c07bd023
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      core/hdd/src/wlan_hdd_softap_tx_rx.c

+ 1 - 1
core/hdd/src/wlan_hdd_softap_tx_rx.c

@@ -760,7 +760,7 @@ QDF_STATUS hdd_softap_rx_packet_cbk(void *context, qdf_nbuf_t rxBuf)
 		/* 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);