Skip to contentSkip to conversation

pv-on-hvm crash fix

PATCH New Gerd Hoffmann 1 participant 1 message May 23, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pv-on-hvm crash fix

Hi,

The attached patch sets the error field in the statically allocated frontend and backend bus structs. This is needed to make sure nobody ever tries to use them uninitialized. Without that patch you can kill your machine by trying to load xen-vnif or xen-vblk on native hardware.

please apply,

Gerd

linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe_backend.c renamed from linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe_backend.c.noxen +1 -0
@@ -115,6 +115,7 @@
 	.levels = 3, 		/* backend/type/<frontend>/<id> */
 	.get_bus_id = backend_bus_id,
 	.probe = xenbus_probe_backend,
+	.error = -ENODEV,
 	.bus = {
 		.name     = "xen-backend",
 		.match    = xenbus_match,
linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c renamed from linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c.noxen +1 -0
@@ -172,6 +172,7 @@
 	.levels = 2, 		/* device/type/<id> */
 	.get_bus_id = frontend_bus_id,
 	.probe = xenbus_probe_frontend,
+	.error = -ENODEV,
 	.bus = {
 		.name     = "xen",
 		.match    = xenbus_match,

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel