mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
qcacld-3.0: Fix epping memory errors
Epping nbuf packets were being tracked by cdf nbug tracking. This change stops tracking of packets prior to being released into the network stack. and uses the correct nbuf free routine for tx packets. Change-Id: Ib986fb595139ace706db00839cf1dabb983013fd CRs-Fixed: 989695
This commit is contained in:
parent
9b755ef5f5
commit
8044edeb8f
2 changed files with 2 additions and 1 deletions
|
|
@ -142,6 +142,7 @@ void epping_rx(void *ctx, HTC_PACKET *pPacket)
|
|||
pktSkb->protocol = eth_type_trans(pktSkb, pktSkb->dev);
|
||||
++pAdapter->stats.rx_packets;
|
||||
pAdapter->stats.rx_bytes += pktSkb->len;
|
||||
qdf_net_buf_debug_release_skb(pktSkb);
|
||||
if (hdd_napi_enabled(HDD_NAPI_ANY))
|
||||
netif_receive_skb(pktSkb);
|
||||
else
|
||||
|
|
|
|||
|
|
@ -375,7 +375,7 @@ void epping_tx_complete_multiple(void *ctx, HTC_PACKET_QUEUE *pPacketQueue)
|
|||
pktSkb = qdf_nbuf_queue_remove(&skb_queue);
|
||||
if (pktSkb == NULL)
|
||||
break;
|
||||
qdf_nbuf_free(pktSkb);
|
||||
qdf_nbuf_tx_free(pktSkb, QDF_NBUF_PKT_ERROR);
|
||||
pEpping_ctx->total_tx_acks++;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue