On 8/31/21 4:39 PM, 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 virtio_init_queue returns error, the memory of vq is freed again
> in virtio_free_queues.
>
> Fixes: 69c80d4ef89b ("net/virtio:
> -Original Message-
> From: Gaoxiang Liu
> Sent: Tuesday, August 31, 2021 10:40 PM
> To: maxime.coque...@redhat.com; Xia, Chenbo
> Cc: dev@dpdk.org; liugaoxi...@huawei.com; Gaoxiang Liu ;
> sta...@dpdk.org
> Subject: [PATCH v4] net/virtio: fix repeated memory free of vq
>
> When virtio_
Hi, chenbo, maxime.
Please help to review the patch.
The patch has been proposed a month ago.
At 2021-08-31 22:39:51, "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 virtio_init_queue returns error
When virtio_init_queue returns error, the memory of vq is freed.
But the value of hw->vqs[queue_idx] does not restore.
If virtio_init_queue returns error, the memory of vq is freed again
in virtio_free_queues.
Fixes: 69c80d4ef89b ("net/virtio: allocate queue at init stage")
Cc: sta...@dpdk.org
Si
4 matches
Mail list logo