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

Commit 6be4b5c6 authored by Ashok Vuyyuru's avatar Ashok Vuyyuru Committed by Gerrit - the friendly Code Review server
Browse files

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



Because of not recycling the skb causing the skb panic in dma mapping
failed scenarios. Add changes to recycle the skb before adding to
recycle list.

Change-Id: I3e91ed9f921baedd79d7aa42c1162a620b83c1c7
Signed-off-by: default avatarAshok Vuyyuru <avuyyuru@codeaurora.org>
parent 5431ddf1
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2112,6 +2112,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);