OpenAMP / open-amp

The main OpenAMP library implementing RPMSG, Virtio, and Remoteproc for RTOS etc
https://www.openampproject.org/
Other
678 stars 278 forks source link

rpmsg_virtio: fix rpmsg_service memory leak when stop remote #523

Closed CV-Bowen closed 8 months ago

CV-Bowen commented 8 months ago

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.

CV-Bowen commented 8 months ago

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.

arnopo commented 8 months ago

ok, so addressed in https://github.com/OpenAMP/open-amp/pull/525