]> Git Repo - linux.git/blobdiff - kernel/fork.c
netlink: Relax attr validation for fixed length types
[linux.git] / kernel / fork.c
index 4e55eedba8d689cfc949ea92caa4111cdca22686..432eadf6b58c18d9de6a3d09f3fef36089b4b5a2 100644 (file)
@@ -1871,7 +1871,7 @@ static __latent_entropy struct task_struct *copy_process(
                retval = -ERESTARTNOINTR;
                goto bad_fork_cancel_cgroup;
        }
-       if (unlikely(!(ns_of_pid(pid)->nr_hashed & PIDNS_HASH_ADDING))) {
+       if (unlikely(!(ns_of_pid(pid)->pid_allocated & PIDNS_ADDING))) {
                retval = -ENOMEM;
                goto bad_fork_cancel_cgroup;
        }
This page took 0.031663 seconds and 4 git commands to generate.