Re: [dpdk-dev] [PATCH v2] net/virtio: fix repeated memory free of vq

2021-08-05 Thread Gaoxiang Liu
On 08/04/2021 07:45, Gaoxiang Liu wrote: When virtio_init_queue returns error, the memory of vq is freed. But the value of hw->vqs[queue_idx] does not restore. If hw->vqs[queue_idx] != NULL, the memory of vq is freed again in virtio_free_queues. Fixes: 69c80d4ef89b ("net/virtio: allocate queu

[dpdk-dev] [PATCH v2] net/virtio: fix repeated memory free of vq

2021-08-03 Thread Gaoxiang Liu
When virtio_init_queue returns error, the memory of vq is freed. But the value of hw->vqs[queue_idx] does not restore. If hw->vqs[queue_idx] != NULL, the memory of vq is freed again in virtio_free_queues. Fixes: 69c80d4ef89b ("net/virtio: allocate queue at init stage") Cc: sta...@dpdk.org Signed-

[dpdk-dev] [PATCH v2] net/virtio: fix repeated memory free of vq

2021-08-03 Thread Gaoxiang Liu
When virtio_init_queue returns error, the memory of vq is freed. But the value of hw->vqs[queue_idx] does not restore. If hw->vqs[queue_idx] != NULL, the memory of vq is freed again in virtio_free_queues. Fixes: 69c80d4ef89b ("net/virtio: allocate queue at init stage") Cc: sta...@dpdk.org Signed-