fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git] / kernel / vserver / legacynet.c
index 2db833f..ede3ca6 100644 (file)
@@ -5,19 +5,17 @@
  *  Virtual Server: Legacy Network Funtions
  *
  *  Copyright (C) 2001-2003  Jacques Gelinas
- *  Copyright (C) 2003-2005  Herbert Pötzl
+ *  Copyright (C) 2003-2007  Herbert Pötzl
  *
  *  V0.01  broken out from legacy.c
  *
  */
 
-#include <linux/config.h>
 #include <linux/sched.h>
 #include <linux/vs_context.h>
 #include <linux/vs_network.h>
 #include <linux/vserver/legacy.h>
-#include <linux/vserver/namespace.h>
-#include <linux/namespace.h>
+// #include <linux/mnt_namespace.h>
 #include <linux/err.h>
 
 #include <asm/errno.h>
@@ -79,6 +77,7 @@ int vc_set_ipv4root(uint32_t nbip, void __user *data)
                printk("!!! switching nx_info %p->%p\n", nxi, new_nxi);
 
        nx_migrate_task(current, new_nxi);
+       release_nx_info(new_nxi, NULL);
        put_nx_info(new_nxi);
        return 0;
 }