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

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

msm: ipa3: Fix to recycle ODL consumer pipe SKB buffer



Because of not recycling the SKB used for ODL consumer pipe
causing the skb over panic when resusing it. Add changes to recycle
ODL consumer pipe skb buffer before reusing it.

Change-Id: I086fee15766f9442dcc7bb57df3c17986822e43f
Signed-off-by: default avatarAshok Vuyyuru <avuyyuru@codeaurora.org>
parent e56fe938
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -3100,11 +3100,14 @@ static int ipa3_odu_rx_pyld_hdlr(struct sk_buff *rx_skb,
static int ipa3_odl_dpl_rx_pyld_hdlr(struct sk_buff *rx_skb,
	struct ipa3_sys_context *sys)
{
	if (WARN(!sys->ep->client_notify, "sys->ep->client_notify is NULL\n"))
	if (WARN(!sys->ep->client_notify, "sys->ep->client_notify is NULL\n")) {
		dev_kfree_skb_any(rx_skb);
	else
	} else {
		sys->ep->client_notify(sys->ep->priv, IPA_RECEIVE,
			(unsigned long)(rx_skb));
		/*Recycle the SKB before reusing it*/
		ipa3_skb_recycle(rx_skb);
	}

	return 0;
}