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

Commit 9ed8b3c8 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 48f0617c 6be4b5c6
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2300,6 +2300,9 @@ static void ipa3_replenish_rx_cache_recycle(struct ipa3_sys_context *sys)
	}
	goto done;
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);