summaryrefslogtreecommitdiffstats
path: root/util/readline.c
diff options
context:
space:
mode:
authorLadi Prosek2017-05-30 10:59:43 +0200
committerMichael S. Tsirkin2017-06-02 17:57:16 +0200
commitf811f97040a48358b456b46ecbc9167f0131034f (patch)
treec123b0d74f9531f7a061e6a17dd001f843f15746 /util/readline.c
parentMerge remote-tracking branch 'remotes/juanquintela/tags/migration/20170601' i... (diff)
downloadqemu-f811f97040a48358b456b46ecbc9167f0131034f.tar.gz
qemu-f811f97040a48358b456b46ecbc9167f0131034f.tar.xz
qemu-f811f97040a48358b456b46ecbc9167f0131034f.zip
virtio-serial-bus: Unset hotplug handler when unrealize
Virtio serial device controls the lifetime of virtio-serial-bus and virtio-serial-bus links back to the device via its hotplug-handler property. This extra ref-count prevents the device from getting finalized, leaving the VirtIODevice memory listener registered and leading to use-after-free later on. This patch addresses the same issue as Fam Zheng's "virtio-scsi: Unset hotplug handler when unrealize" only for a different virtio device. Cc: qemu-stable@nongnu.org Signed-off-by: Ladi Prosek <lprosek@redhat.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: Fam Zheng <famz@redhat.com>
Diffstat (limited to 'util/readline.c')
0 files changed, 0 insertions, 0 deletions