ARM: dts: mt6589: Change compatible string for GIC
[firefly-linux-kernel-4.4.55.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;