rpmsg: glink: Fix reuse intents memory leak issue
commitb85f6b601407347f5425c4c058d1b7871f5bf4f0
authorArun Kumar Neelakantam <aneela@codeaurora.org>
Fri, 4 Oct 2019 22:26:57 +0000 (4 15:26 -0700)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 16 Oct 2019 16:38:15 +0000 (16 09:38 -0700)
treecb69452e7613b1a6f8e9a09de5d2ce7ce0e9e48a
parent4623e8bf1de0b86e23a56cdb39a72f054e89c3bd
rpmsg: glink: Fix reuse intents memory leak issue

Memory allocated for re-usable intents are not freed during channel
cleanup which causes memory leak in system.

Check and free all re-usable memory to avoid memory leak.

Fixes: 933b45da5d1d ("rpmsg: glink: Add support for TX intents")
Cc: stable@vger.kernel.org
Acked-By: Chris Lew <clew@codeaurora.org>
Tested-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Arun Kumar Neelakantam <aneela@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