From: "Michael S. Tsirkin" <mst@redhat.com>
To: qemu-devel@nongnu.org
Cc: Peter Maydell <peter.maydell@linaro.org>,
zhanghailiang <zhang.zhanghailiang@huawei.com>,
Paolo Bonzini <pbonzini@redhat.com>, Amit Shah <amit@kernel.org>
Subject: [Qemu-devel] [PULL 5/5] virtio-serial-bus: Delete timer from list before free it
Date: Thu, 16 Mar 2017 04:35:10 +0200 [thread overview]
Message-ID: <1489631689-6382-6-git-send-email-mst@redhat.com> (raw)
In-Reply-To: <1489631689-6382-1-git-send-email-mst@redhat.com>
From: zhanghailiang <zhang.zhanghailiang@huawei.com>
Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Amit Shah <amit@kernel.org>
---
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;
--
MST
next prev parent reply other threads:[~2017-03-16 2:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-16 2:34 [Qemu-devel] [PULL 0/5] virtio, pci: fixes Michael S. Tsirkin
2017-03-16 2:35 ` [Qemu-devel] [PULL 1/5] hw/pcie: fix Extended Configuration Space for devices with no Extended Capabilities Michael S. Tsirkin
2017-03-16 2:35 ` [Qemu-devel] [PULL 2/5] hw/virtio: fix error enabling flags in Device Control register Michael S. Tsirkin
2017-03-16 2:35 ` [Qemu-devel] [PULL 3/5] hw/virtio: fix Link Control Register for PCI Express virtio devices Michael S. Tsirkin
2017-03-16 2:35 ` [Qemu-devel] [PULL 4/5] hw/virtio: fix Power Management " Michael S. Tsirkin
2017-03-16 2:35 ` Michael S. Tsirkin [this message]
2017-03-16 12:04 ` [Qemu-devel] [PULL 0/5] virtio, pci: fixes Peter Maydell
2017-03-16 14:10 ` Peter Maydell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1489631689-6382-6-git-send-email-mst@redhat.com \
--to=mst@redhat.com \
--cc=amit@kernel.org \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=zhang.zhanghailiang@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).