Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d19081d5 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: ipa3: Fix to recycle the skb before adding to recycle list"

parents c1dc0936 ab8ee379
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1936,6 +1936,9 @@ static void ipa3_replenish_rx_cache_recycle(struct ipa3_sys_context *sys)
	dma_unmap_single(ipa3_ctx->pdev, rx_pkt->data.dma_addr,
		sys->rx_buff_sz, DMA_FROM_DEVICE);
fail_dma_mapping:
	/* Recycle skb  before adding to recycle list if dma mapping failed */
	rx_pkt->data.dma_addr = 0;
	ipa3_skb_recycle(rx_pkt->data.skb);
	spin_lock_bh(&sys->spinlock);
	list_add_tail(&rx_pkt->link, &sys->rcycl_list);
	INIT_LIST_HEAD(&rx_pkt->link);