X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=kernel%2Fpid_namespace.c;h=601bb361c235a9ff28327a92b1e1a4387d128d0f;hb=f357a82048ff1e5645861475b014570e11ad1911;hp=6917e8edb48e7702714041737657f1e3949bc849;hpb=188af63c0af2d7ef395bc94e3efa173f34dae03d;p=firefly-linux-kernel-4.4.55.git diff --git a/kernel/pid_namespace.c b/kernel/pid_namespace.c index 6917e8edb48e..601bb361c235 100644 --- a/kernel/pid_namespace.c +++ b/kernel/pid_namespace.c @@ -349,8 +349,8 @@ static int pidns_install(struct nsproxy *nsproxy, void *ns) if (ancestor != active) return -EINVAL; - put_pid_ns(nsproxy->pid_ns); - nsproxy->pid_ns = get_pid_ns(new); + put_pid_ns(nsproxy->pid_ns_for_children); + nsproxy->pid_ns_for_children = get_pid_ns(new); return 0; }