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

Commit 4bc50086 authored by Gidon Studinski's avatar Gidon Studinski
Browse files

msm: ipa: a2_service: memory leak in tethered path



Fix a memory leak in case that tethered client has no callback
function and data arrives from A2 on the tethered path.

Change-Id: Ie1bfac7015fb34b4f0d77d0e49238c72d6f558f7
CRs-Fixed: 576846
Acked-by: default avatarAdy Abraham <adya@qti.qualcomm.com>
Signed-off-by: default avatarGidon Studinski <gidons@codeaurora.org>
parent 76ccdc74
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -517,6 +517,8 @@ static void ipa_tethered_notify(void *priv,
				a2_mux_ctx->bam_ch[A2_MUX_TETHERED_0].user_data,
				A2_MUX_RECEIVE,
				data);
		else
			dev_kfree_skb_any((struct sk_buff *)data);
		break;
	case IPA_WRITE_DONE:
		a2_mux_write_done(true, (struct sk_buff *)data);