Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rpmsg_virtio: fix rpmsg_service memory leak when stop remote
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 <yintao@xiaomi.com>
- Loading branch information