]> xenbits.xensource.com Git - xenclient/kernel.git/commitdiff
The Windows drivers push the network frontend to state Closed, then netback-wait-for-hotplug
authort_jeang <devnull@localhost>
Tue, 6 Jan 2009 12:06:02 +0000 (12:06 +0000)
committert_jeang <devnull@localhost>
Tue, 6 Jan 2009 12:06:02 +0000 (12:06 +0000)
Initialised, then Closed again as part of device disable.  Make sure
the backend doesn't get stuck at closed.

drivers/xen/netback/xenbus.c

index 173b276c05cbec4ca60b8705894310b4ba60d757..70a8b755104738bc5034d503abf8d2d2440632eb 100644 (file)
@@ -264,8 +264,8 @@ static void frontend_changed(struct xenbus_device *dev,
                        printk(KERN_INFO "%s: %s: prepare for reconnect\n",
                               __FUNCTION__, dev->nodename);
                        disconnect_backend(dev);
-                       xenbus_switch_state(dev, XenbusStateInitWait);
                }
+               xenbus_switch_state(dev, XenbusStateInitWait);
                break;
 
        case XenbusStateInitialised: