leds: add device tree bindings for register bit LEDs
[cascardo/linux.git] / ipc / namespace.c
index 59451c1..b54468e 100644 (file)
@@ -154,11 +154,11 @@ static void *ipcns_get(struct task_struct *task)
        struct ipc_namespace *ns = NULL;
        struct nsproxy *nsproxy;
 
-       rcu_read_lock();
-       nsproxy = task_nsproxy(task);
+       task_lock(task);
+       nsproxy = task->nsproxy;
        if (nsproxy)
                ns = get_ipc_ns(nsproxy->ipc_ns);
-       rcu_read_unlock();
+       task_unlock(task);
 
        return ns;
 }