Displaying 1 result from an estimated 1 matches for "f036b8d".
2012 Feb 22
2
[PATCH] qemu-xen: ignore console disconnect events from console/0
...l. We already special case the first console in con_init
and con_initialise, we should also do it in con_disconnect.
This patch should be applied to 4.1 too.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
diff --git a/hw/xen_console.c b/hw/xen_console.c
index 0a2374c..f036b8d 100644
--- a/hw/xen_console.c
+++ b/hw/xen_console.c
@@ -253,6 +253,8 @@ static void con_disconnect(struct XenDevice *xendev)
{
struct XenConsole *con = container_of(xendev, struct XenConsole, xendev);
+ if (!xendev->dev)
+ return;
if (con->chr)
qemu_chr_add_ha...