]> git.ipfire.org Git - thirdparty/qemu.git/commit
virtio-serial: switch exit callback to VirtioDeviceClass
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 20 Sep 2013 12:05:56 +0000 (14:05 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 21 Feb 2014 03:36:15 +0000 (21:36 -0600)
commite6c007056c3c40017bf8d00e4a0d259905f6e2cf
tree9b37309102dd7346d4b197c6a9d82ef46d6bc6d4
parente84e23de3595c48d58745d518c323350bbf228f0
virtio-serial: switch exit callback to VirtioDeviceClass

This ensures hot-unplug is handled properly by the proxy, and avoids
leaking bus_name which is freed by virtio_device_exit.

Cc: qemu-stable@nongnu.org
Acked-by: Andreas Faerber <afaerber@suse.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 0e86c13fe2058adb8c792ebb7c51a6a7ca9d3d55)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/char/virtio-serial-bus.c