[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Fix device destruction.



# HG changeset patch
# User cl349@xxxxxxxxxxxxxxxxxxxx
# Node ID 102765de794c45574a80b6862f63bf6995e5c839
# Parent  3428d58a85e1a4a618e3f6e7139e4dcf1f9cad19
Fix device destruction.
Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>

diff -r 3428d58a85e1 -r 102765de794c 
linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c
--- a/linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c Thu Aug 25 14:41:52 2005
+++ b/linux-2.6-xen-sparse/drivers/xen/netback/xenbus.c Thu Aug 25 15:45:19 2005
@@ -48,10 +48,8 @@
        if (be->watch.node)
                unregister_xenbus_watch(&be->watch);
        unregister_xenbus_watch(&be->backend_watch);
-#if 0
-       if (be->blkif)
-               blkif_put(be->blkif);
-#endif
+       if (be->netif)
+               netif_disconnect(be->netif);
        if (be->frontpath)
                kfree(be->frontpath);
        kfree(be);

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.