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

Commit 41ef6647 authored by Dhoat Harpal's avatar Dhoat Harpal
Browse files

soc: qcom: glink: Free data memory before freeing intent



Data of intent is not freed even in purge_intent_list. This results
in memory leak.

Kfree is done for data before freeing intent.

CRs-Fixed: 2116744
Change-Id: Ib99261208df1cc9b63b4cd0a35ac0c7942efb4a8
Signed-off-by: default avatarDhoat Harpal <hdhoat@codeaurora.org>
parent ced1f060
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1669,6 +1669,8 @@ void ch_purge_intent_lists(struct channel_ctx *ctx)
				&ctx->local_rx_intent_list, list) {
		ctx->notify_rx_abort(ctx, ctx->user_priv,
				ptr_intent->pkt_priv);
		ctx->transport_ptr->ops->deallocate_rx_intent(
					ctx->transport_ptr->ops, ptr_intent);
		list_del(&ptr_intent->list);
		kfree(ptr_intent);
	}