Ver código fonte

qcacld-3.0: Fix double free of the network buffer

Ensure the skb is submitted to the network stack only once.

Change-Id: If3f358971f2980f0ca05c98177c998b7d59200ab
CRs-Fixed: 2035230
Dhanashri Atre 8 anos atrás
pai
commit
ab7c9cb8a9
1 arquivos alterados com 0 adições e 7 exclusões
  1. 0 7
      core/hdd/src/wlan_hdd_tx_rx.c

+ 0 - 7
core/hdd/src/wlan_hdd_tx_rx.c

@@ -1125,13 +1125,6 @@ QDF_STATUS hdd_rx_packet_cbk(void *context, qdf_nbuf_t rxBuf)
 								  rx_wakelock_timeout);
 		}
 
-	if (HDD_LRO_NO_RX == hdd_lro_rx(pHddCtx, pAdapter, skb)) {
-		if (hdd_napi_enabled(HDD_NAPI_ANY) &&
-		    !pHddCtx->enableRxThread)
-			rxstat = netif_receive_skb(skb);
-		else
-			rxstat = netif_rx_ni(skb);
-	}
 		/* Remove SKB from internal tracking table before submitting
 		 * it to stack
 		 */