Fix a race that crash domU by calling xenbus_probe twice if it receive event

between xs_init and setting xenbus_running

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
This commit is contained in:
vhanquez@kneesa.uk.xensource.com committed 2006-03-18 13:56:34 +00:00
1 parent d3ef5b488a
commit be4c0619d5
1 file changed
+3 -3
@@ -1049,6 +1049,8 @@ static int __init xenbus_probe_init(void)
if (xsd_port_intf)
xsd_port_intf->read_proc = xsd_port_read;
}
else
xenstored_ready = 1;
/* Initialize the interface to xenstore. */
err = xs_init();
@@ -1058,10 +1060,8 @@ static int __init xenbus_probe_init(void)
return err;
}
if (!dom0) {
xenstored_ready = 1;
if (!dom0)
xenbus_probe(NULL);
}
return 0;
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.