rpmsg: glink: Remove channel decouple from rpdev release
authorChris Lew <clew@codeaurora.org>
Thu, 30 Jul 2020 05:18:15 +0000 (10:48 +0530)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Fri, 15 Oct 2021 16:01:14 +0000 (11:01 -0500)
commit343ba27b6f9d473ec3e602cc648300eb03a7fa05
tree778644f3ad902ade013279211e42788b92c55efc
parentc7c182d4447e172f87e37d6c04879b94b8635b37
rpmsg: glink: Remove channel decouple from rpdev release

If a channel is being rapidly restarting and the kobj release worker is
busy, there is a chance the rpdev_release function will run after the
channel struct itself has been released.

There should not be a need to decouple the channel from rpdev in the
rpdev release since that should only happen from the close commands.

Signed-off-by: Chris Lew <clew@codeaurora.org>
Signed-off-by: Deepak Kumar Singh <deesin@codeaurora.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/1596086296-28529-6-git-send-email-deesin@codeaurora.org
drivers/rpmsg/qcom_glink_native.c