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

Commit 41473760 authored by Arun Kumar Neelakantam's avatar Arun Kumar Neelakantam Committed by Chris Lew
Browse files

rpmsg: glink: Initialize the "intent_req_comp" completion variable



The "intent_req_comp" variable is used without initialization which
results in NULL pointer dereference in qcom_glink_request_intent().

we need to initialize the completion variable before using it.

Change-Id: Ib5ad484ddaa0b1b2e13e4b098475ab04ea8fbd44
Fixes: 27b9c5b6 ("rpmsg: glink: Request for intents when unavailable")
Signed-off-by: default avatarArun Kumar Neelakantam <aneela@codeaurora.org>
Signed-off-by: default avatarChris Lew <clew@codeaurora.org>
parent dc8ec7ba
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -227,6 +227,7 @@ static struct glink_channel *qcom_glink_alloc_channel(struct qcom_glink *glink,

	init_completion(&channel->open_req);
	init_completion(&channel->open_ack);
	init_completion(&channel->intent_req_comp);

	INIT_LIST_HEAD(&channel->done_intents);
	INIT_WORK(&channel->intent_work, qcom_glink_rx_done_work);