Re: [PATCH v2] virtio-mmio: fix memory leak of vm_dev

2023-09-08 Thread Catalin Marinas
On Fri, Sep 08, 2023 at 11:38:40AM +, Maximilian Heyne wrote: > On Thu, Sep 07, 2023 at 05:28:25PM +0100, Catalin Marinas wrote: > > On Thu, Sep 07, 2023 at 02:17:16PM +, Maximilian Heyne wrote: > > > With the recent removal of vm_dev from devres its memory is only freed > > > via the

Re: [PATCH v2] virtio-mmio: fix memory leak of vm_dev

2023-09-07 Thread Xuan Zhuo
On Thu, 7 Sep 2023 14:17:16 +, Maximilian Heyne wrote: > With the recent removal of vm_dev from devres its memory is only freed > via the callback virtio_mmio_release_dev. However, this only takes > effect after device_add is called by register_virtio_device. Until then > it's an unmanaged

Re: [PATCH v2] virtio-mmio: fix memory leak of vm_dev

2023-09-07 Thread Catalin Marinas
On Thu, Sep 07, 2023 at 02:17:16PM +, Maximilian Heyne wrote: > With the recent removal of vm_dev from devres its memory is only freed > via the callback virtio_mmio_release_dev. However, this only takes > effect after device_add is called by register_virtio_device. Until then > it's an