Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rpmsg_virtio: fix rpmsg_service memory leak when stop remote #523

Closed
wants to merge 1 commit into from

Conversation

CV-Bowen
Copy link
Contributor

Rpmsg service may malloc memory in the rpmsg bind callback(): rdev->ns_bind_cb() When stop remote, the remote may not send RPMSG_NS_DESTROY message back (baceause the remote may has crashed), so call the unbind callback in rpmsg_deinit_vdev() to aviod potential memroy leak in rpmsg services.

Rpmsg service may malloc memory in the rpmsg bind callback(): rdev->ns_bind_cb()
When stop remote, the remote may not send RPMSG_NS_DESTROY message back
(baceause the remote may has crashed), so call the unbind callback in
rpmsg_deinit_vdev() to aviod potential memroy leak in rpmsg services.

Signed-off-by: Yin Tao <[email protected]>
@CV-Bowen
Copy link
Contributor Author

CV-Bowen commented Oct 17, 2023

This patch still has some problems need to be fixed. @yintao707 will create a new PR to fix this issue and I will close this PR.

@CV-Bowen CV-Bowen closed this Oct 17, 2023
@arnopo
Copy link
Collaborator

arnopo commented Oct 19, 2023

ok, so addressed in #525

@arnopo arnopo modified the milestone: Release V2023.10 Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants