mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
Fix device destruction.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
This commit is contained in:
1 parent
7910cdc377
commit
73429619b1
1 file changed
+2
-4
@@ -48,10 +48,8 @@ static int netback_remove(struct xenbus_device *dev)
|
||||
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);
|
||||
|
||||