aboutsummaryrefslogtreecommitdiff
path: root/drivers/rpmsg/rpmsg_char.c
diff options
context:
space:
mode:
authorGravatar Bjorn Andersson <bjorn.andersson@linaro.org> 2019-10-04 15:27:01 -0700
committerGravatar Bjorn Andersson <bjorn.andersson@linaro.org> 2019-10-17 06:23:10 -0700
commitc3dadc19b7564c732598b30d637c6f275c3b77b6 (patch)
treeb6f01b54f11cea981a8a7123213b565b07f07643 /drivers/rpmsg/rpmsg_char.c
parentrpmsg: glink: Fix rpmsg_register_device err handling (diff)
downloadlinux-c3dadc19b7564c732598b30d637c6f275c3b77b6.tar.gz
linux-c3dadc19b7564c732598b30d637c6f275c3b77b6.tar.bz2
linux-c3dadc19b7564c732598b30d637c6f275c3b77b6.zip
rpmsg: glink: Don't send pending rx_done during remove
Attempting to transmit rx_done messages after the GLINK instance is being torn down will cause use after free and memory leaks. So cancel the intent_work and free up the pending intents. With this there are no concurrent accessors of the channel left during qcom_glink_native_remove() and there is therefor no need to hold the spinlock during this operation - which would prohibit the use of cancel_work_sync() in the release function. So remove this. Fixes: 1d2ea36eead9 ("rpmsg: glink: Add rx done command") 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>
Diffstat (limited to 'drivers/rpmsg/rpmsg_char.c')
0 files changed, 0 insertions, 0 deletions