qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] vhost-vsock: detach the virqueue element in case of error


From: Stefan Hajnoczi
Subject: Re: [PATCH] vhost-vsock: detach the virqueue element in case of error
Date: Tue, 1 Mar 2022 09:30:42 +0000

On Mon, Feb 28, 2022 at 10:50:58AM +0100, Stefano Garzarella wrote:
> In vhost_vsock_common_send_transport_reset(), if an element popped from
> the virtqueue is invalid, we should call virtqueue_detach_element() to
> detach it from the virtqueue before freeing its memory.
> 
> Fixes: fc0b9b0e1c ("vhost-vsock: add virtio sockets device")
> Cc: qemu-stable@nongnu.org
> Reported-by: VictorV <vv474172261@gmail.com>
> Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
> ---
>  hw/virtio/vhost-vsock-common.c | 10 +++++++---
>  1 file changed, 7 insertions(+), 3 deletions(-)

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]