mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
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 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. Change-Id: Ia4131151b7efb014716c5a0666f940384975ea42 Signed-off-by: Chris Lew <clew@codeaurora.org>
This commit is contained in:
parent
37cdb7af00
commit
8fb662388c
1 changed files with 0 additions and 2 deletions
|
|
@ -1728,9 +1728,7 @@ static const struct rpmsg_endpoint_ops glink_endpoint_ops = {
|
|||
static void qcom_glink_rpdev_release(struct device *dev)
|
||||
{
|
||||
struct rpmsg_device *rpdev = to_rpmsg_device(dev);
|
||||
struct glink_channel *channel = to_glink_channel(rpdev->ept);
|
||||
|
||||
channel->rpdev = NULL;
|
||||
kfree(rpdev);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue