OSDN Git Service

rpmsg: glink: Put an extra reference during cleanup
authorChris Lew <clew@codeaurora.org>
Fri, 4 Oct 2019 22:26:59 +0000 (15:26 -0700)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 16 Oct 2019 16:38:22 +0000 (09:38 -0700)
commitb646293e272816dd0719529dcebbd659de0722f7
treeda9bb7cf2ed1eb4761cd9f019414cc9ebed72972
parentac74ea01860170699fb3b6ea80c0476774c8e94f
rpmsg: glink: Put an extra reference during cleanup

In a remote processor crash scenario, there is no guarantee the remote
processor sent close requests before it went into a bad state. Remove
the reference that is normally handled by the close command in the
so channel resources can be released.

Fixes: b4f8e52b89f6 ("rpmsg: Introduce Qualcomm RPM glink driver")
Cc: stable@vger.kernel.org
Tested-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Chris Lew <clew@codeaurora.org>
Reported-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/rpmsg/qcom_glink_native.c