On 08/05/2015 03:56 PM, Michael S. Tsirkin wrote: > On Wed, Aug 05, 2015 at 03:20:18PM +0800, Jason Wang wrote: >> > Spec requires a device reset during cleanup, so do it and avoid warn >> > in virtio core. >> > >> > Signed-off-by: Jason Wang <jasowang@xxxxxxxxxx> > OK but now that I look at this driver, that's not enough. > > Need to also detach and free unused buffers, otherwise > we leak memory in evt and sts queues. Probably only sts. For evt queue, all buffer it used was an array embedded in virtio_input structure (vi->evts[]) _______________________________________________ Virtualization mailing list Virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linuxfoundation.org/mailman/listinfo/virtualization