nfsd4: reserve space before inlining 0-copy pages
[deliverable/linux.git] / kernel / pid_namespace.c
index 06c62de9c71191a68e5ea5b97bcb3a46b707a60d..db95d8eb761b4f92c4722a2667fb258e7e2b64c8 100644 (file)
@@ -318,7 +318,9 @@ static void *pidns_get(struct task_struct *task)
        struct pid_namespace *ns;
 
        rcu_read_lock();
-       ns = get_pid_ns(task_active_pid_ns(task));
+       ns = task_active_pid_ns(task);
+       if (ns)
+               get_pid_ns(ns);
        rcu_read_unlock();
 
        return ns;
This page took 0.024369 seconds and 5 git commands to generate.