[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-stable] [PATCH] virtio-serial-bus: Delete timer from list befo
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-stable] [PATCH] virtio-serial-bus: Delete timer from list before free it |
Date: |
Mon, 6 Mar 2017 18:02:15 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 |
On 06/03/2017 04:29, zhanghailiang wrote:
> Signed-off-by: zhanghailiang <address@hidden>
> ---
> hw/char/virtio-serial-bus.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/hw/char/virtio-serial-bus.c b/hw/char/virtio-serial-bus.c
> index d544cd9..d797a67 100644
> --- a/hw/char/virtio-serial-bus.c
> +++ b/hw/char/virtio-serial-bus.c
> @@ -724,6 +724,7 @@ static void virtio_serial_post_load_timer_cb(void *opaque)
> }
> }
> g_free(s->post_load->connected);
> + timer_del(s->post_load->timer);
> timer_free(s->post_load->timer);
> g_free(s->post_load);
> s->post_load = NULL;
>
Reviewed-by: Paolo Bonzini <address@hidden>
Cc: address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Qemu-stable] [PATCH] virtio-serial-bus: Delete timer from list before free it,
Paolo Bonzini <=