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

Commit 4a85a0fc authored by Jagadeesh Ponduru's avatar Jagadeesh Ponduru Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa: remove initing head again if dma mapping fails



Remove Initializing rx_pkt link if dma mapping fails.

Change-Id: I49d08555c875fc9039805ef8775be3b676f51d08
Signed-off-by: default avatarJagadeesh Ponduru <quic_jponduru@quicinc.com>
parent 4e4f2b2b
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -2490,7 +2490,6 @@ static void ipa3_replenish_rx_cache_recycle(struct ipa3_sys_context *sys)
fail_dma_mapping:
	spin_lock_bh(&sys->spinlock);
	list_add_tail(&rx_pkt->link, &sys->rcycl_list);
	INIT_LIST_HEAD(&rx_pkt->link);
	spin_unlock_bh(&sys->spinlock);
fail_kmem_cache_alloc:
	if (rx_len_cached == 0)