rpmsg: glink: Initialize the "intent_req_comp" completion variable
authorArun Kumar Neelakantam <aneela@codeaurora.org>
Mon, 30 Oct 2017 05:41:24 +0000 (11:11 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Dec 2017 09:10:29 +0000 (10:10 +0100)
commit81309f8b9b69913233733ed61c4c87dab5436902
treee7546f9e20349fc5940623a937d6f1e491980df7
parent7291d99ebc67be887e5c915489706e6fe720992a
rpmsg: glink: Initialize the "intent_req_comp" completion variable

[ Upstream commit 2394facb17bcace4b3c19b50202177a5d8903b64 ]

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.

Fixes: 27b9c5b66b23 ("rpmsg: glink: Request for intents when unavailable")
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/rpmsg/qcom_glink_native.c