aboutsummaryrefslogtreecommitdiff
path: root/hw/virtio-console.c
diff options
context:
space:
mode:
authorAmit Shah <amit.shah@redhat.com>2011-03-03 13:29:45 +0530
committerAmit Shah <amit.shah@redhat.com>2011-03-21 16:55:12 +0530
commitfee063c07f20b442ef4bedef834ab0a3bf55b562 (patch)
tree497bb20bf04cfa95967d02a7a15c5e8721471cd9 /hw/virtio-console.c
parente9b382b0170ee045295f2ff0ce1009a01a11eb1f (diff)
virtio-serial: Don't clear ->have_data() pointer after unplug
After a port unplug operation, the port->info->have_data() pointer was set to NULL. The problem is, the ->info struct is shared by all ports, effectively disabling writes to other ports. Reported-by: juzhang <juzhang@redhat.com> Signed-off-by: Amit Shah <amit.shah@redhat.com>
Diffstat (limited to 'hw/virtio-console.c')
-rw-r--r--hw/virtio-console.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/virtio-console.c b/hw/virtio-console.c
index 4440784637..be5955868f 100644
--- a/hw/virtio-console.c
+++ b/hw/virtio-console.c
@@ -82,7 +82,6 @@ static int virtconsole_exitfn(VirtIOSerialPort *port)
VirtConsole *vcon = DO_UPCAST(VirtConsole, port, port);
if (vcon->chr) {
- port->info->have_data = NULL;
qemu_chr_close(vcon->chr);
}