rpmsg: glink: Free pending deferred work on remove
authorBjorn Andersson <bjorn.andersson@linaro.org>
Fri, 4 Oct 2019 22:27:02 +0000 (15:27 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Dec 2019 09:47:47 +0000 (10:47 +0100)
commit50736a155f0f4953ee802699431b3f1eff9d8e6b
tree7d884f4e7bab9909ff30f9d31282851f8d10bd44
parent29166ff96dad3e6b95aa30bcf2aeda6e3e69b791
rpmsg: glink: Free pending deferred work on remove

commit 278bcb7300f61785dba63840bd2a8cf79f14554c upstream.

By just cancelling the deferred rx worker during GLINK instance teardown
any pending deferred commands are leaked, so free them.

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