]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - kernel/nsproxy.c
[PATCH] identifier to nsproxy
[mirror_ubuntu-bionic-kernel.git] / kernel / nsproxy.c
index bd9cb435dfe0f0968a3acb092631daf1c2bf92cc..f223c15c18e962b2ec175fbebb770b5b42ff5bc5 100644 (file)
@@ -45,8 +45,10 @@ static inline struct nsproxy *clone_namespaces(struct nsproxy *orig)
        struct nsproxy *ns;
 
        ns = kmemdup(orig, sizeof(struct nsproxy), GFP_KERNEL);
-       if (ns)
+       if (ns) {
                atomic_set(&ns->count, 1);
+               ns->id = -1;
+       }
        return ns;
 }