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)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 31 Oct 2017 02:00:25 +0000 (19:00 -0700)
commit2394facb17bcace4b3c19b50202177a5d8903b64
tree3832d8eb0141e7c3e64473ff8f374a7d3835868e
parent4d91d7b099508831e82ef209bba71c8b636886a2
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.

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>
drivers/rpmsg/qcom_glink_native.c