virtio-serial: delete timer if active during exit
commita75bf146503a94fb900e0dfa0529bd5d1be9fec5
authorAmit Shah <amit.shah@redhat.com>
Thu, 13 Dec 2012 10:24:43 +0000 (13 15:54 +0530)
committerAmit Shah <amit.shah@redhat.com>
Thu, 13 Dec 2012 10:31:26 +0000 (13 16:01 +0530)
tree145d4ed58791176b417ebd341948937a72b23ddb
parentbdb917bf8ab187b662c612ee6fb87479c0b82490
virtio-serial: delete timer if active during exit

The post_load timer was being freed, but not deleted.  This could cause
problems when the timer is armed, but the device is hot-unplugged before
the callback is executed.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
hw/virtio-serial-bus.c