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: Dhoat Harpal <hdhoat@codeaurora.org>
This commit is contained in:
parent
b33f617917
commit
664fcc0919
1 changed files with 2 additions and 0 deletions
|
@ -1667,6 +1667,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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue