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

Commit 950c5f2e authored by Dhoat Harpal's avatar Dhoat Harpal
Browse files

soc: qcom: glink: Modify debug logs while push remote intent



Debug logs in ch_push_remote_rx_intent uses intent pointer to get
id and size. This leads to use after free issue since intent pointer
can be freed by another context calling glink_tx_common.

Local variables are used to print size and id in debug logs.

CRs-Fixed: 2195647
Change-Id: I9e995d2e78dd66d37a6068ea8a696012cd7d43a6
Signed-off-by: default avatarDhoat Harpal <hdhoat@codeaurora.org>
parent 85a10b57
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1274,8 +1274,7 @@ void ch_push_remote_rx_intent(struct channel_ctx *ctx, size_t size,
	spin_unlock_irqrestore(&ctx->rmt_rx_intent_lst_lock_lhc2, flags);

	GLINK_DBG_CH(ctx, "%s: R[%u]:%zu Pushed remote intent\n", __func__,
			intent->id,
			intent->intent_size);
			riid, size);
}

/**