PERFORCE change 132558 for review

Kip Macy kmacy at FreeBSD.org
Fri Jan 4 23:48:05 PST 2008


http://perforce.freebsd.org/chv.cgi?CH=132558

Change 132558 by kmacy at pandemonium:kmacy:xen31 on 2008/01/05 07:47:38

	return error in initialization failure
	set initial state to initializing

Affected files ...

.. //depot/projects/xen31/sys/xen/xenbus/xenbus_probe.c#5 edit

Differences ...

==== //depot/projects/xen31/sys/xen/xenbus/xenbus_probe.c#5 (text+ko) ====

@@ -600,7 +600,11 @@
 	char *tmpstring;
 
 	XenbusState state = xenbus_read_driver_state(nodename);
+
+	if (bus->error)
+			return (bus->error);
 	
+	
 	if (state != XenbusStateInitialising) {
 		/* Device is not new, so ignore it.  This can happen if a
 		   device is going away after switching to Closed.  */
@@ -612,6 +616,7 @@
 	if (!xendev)
 		return -ENOMEM;
 	memset(xendev, 0, sizeof(*xendev));
+	xendev->state = XenbusStateInitialising;
 	
 	/* Copy the strings into the extra space. */
 	


More information about the p4-projects mailing list