]> git.proxmox.com Git - qemu.git/commit
virtio-serial: Don't clear ->have_data() pointer after unplug
authorAmit Shah <amit.shah@redhat.com>
Thu, 3 Mar 2011 07:59:45 +0000 (13:29 +0530)
committerAmit Shah <amit.shah@redhat.com>
Mon, 21 Mar 2011 11:25:12 +0000 (16:55 +0530)
commitfee063c07f20b442ef4bedef834ab0a3bf55b562
tree497bb20bf04cfa95967d02a7a15c5e8721471cd9
parente9b382b0170ee045295f2ff0ce1009a01a11eb1f
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>
hw/virtio-console.c