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

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

Merge "msm: ipa: add skb recycle if dma fails during replenish"

parents 4a85a0fc 1186a4d5
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2448,7 +2448,7 @@ static void ipa3_replenish_rx_cache_recycle(struct ipa3_sys_context *sys)
			spin_lock_bh(&sys->spinlock);
			rx_pkt = list_first_entry(&sys->rcycl_list,
				struct ipa3_rx_pkt_wrapper, link);
			list_del(&rx_pkt->link);
			list_del_init(&rx_pkt->link);
			spin_unlock_bh(&sys->spinlock);
			ptr = skb_put(rx_pkt->data.skb, sys->rx_buff_sz);
			rx_pkt->data.dma_addr = dma_map_single(ipa3_ctx->pdev,
@@ -2489,6 +2489,7 @@ static void ipa3_replenish_rx_cache_recycle(struct ipa3_sys_context *sys)
	goto done;
fail_dma_mapping:
	spin_lock_bh(&sys->spinlock);
	ipa3_skb_recycle(rx_pkt->data.skb);
	list_add_tail(&rx_pkt->link, &sys->rcycl_list);
	spin_unlock_bh(&sys->spinlock);
fail_kmem_cache_alloc: