Skip to content

Commit 343ba27

Browse files
Chris Lewandersson
authored andcommitted
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 <[email protected]> Signed-off-by: Deepak Kumar Singh <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent c7c182d commit 343ba27

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/rpmsg/qcom_glink_native.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1417,9 +1417,7 @@ static const struct rpmsg_endpoint_ops glink_endpoint_ops = {
14171417
static void qcom_glink_rpdev_release(struct device *dev)
14181418
{
14191419
struct rpmsg_device *rpdev = to_rpmsg_device(dev);
1420-
struct glink_channel *channel = to_glink_channel(rpdev->ept);
14211420

1422-
channel->rpdev = NULL;
14231421
kfree(rpdev);
14241422
}
14251423

0 commit comments

Comments
 (0)