[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-stable] [Qemu-devel] [PATCH] virtio: Unregister memory listene
From: |
Markus Armbruster |
Subject: |
Re: [Qemu-stable] [Qemu-devel] [PATCH] virtio: Unregister memory listener when unrealize |
Date: |
Wed, 10 May 2017 11:51:37 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
Fam Zheng <address@hidden> writes:
> Cc: address@hidden
> Signed-off-by: Fam Zheng <address@hidden>
> ---
> hw/virtio/virtio.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/hw/virtio/virtio.c b/hw/virtio/virtio.c
> index 03592c5..a7741f4 100644
> --- a/hw/virtio/virtio.c
> +++ b/hw/virtio/virtio.c
> @@ -2515,6 +2515,7 @@ static void virtio_device_unrealize(DeviceState *dev,
> Error **errp)
> }
> }
>
> + memory_listener_unregister(&vdev->listener);
> g_free(vdev->bus_name);
> vdev->bus_name = NULL;
> }
Is this a bug fix? If yes, what exactly's broken without it?