All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] pv-on-hvm crash fix
@ 2007-05-23 10:26 Gerd Hoffmann
  0 siblings, 0 replies; only message in thread
From: Gerd Hoffmann @ 2007-05-23 10:26 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 316 bytes --]

   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

[-- Attachment #2: xenpv-noxen.diff --]
[-- Type: text/x-patch, Size: 908 bytes --]

--- xenpv-3.1_15040/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe_backend.c.noxen	2007-05-22 16:16:53.000000000 +0200
+++ xenpv-3.1_15040/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe_backend.c	2007-05-22 16:17:31.000000000 +0200
@@ -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,
--- xenpv-3.1_15040/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c.noxen	2007-05-22 15:49:19.000000000 +0200
+++ xenpv-3.1_15040/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c	2007-05-22 16:16:30.000000000 +0200
@@ -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,

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-05-23 10:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-23 10:26 [patch] pv-on-hvm crash fix Gerd Hoffmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.