ext4: fix ext4_swap_extents() error handling
[deliverable/linux.git] / ipc / namespace.c
index 59451c1e214d71f1b771b764d309b20759e19eb6..b54468e48e3214899b992b38b130072d1a580d4b 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;
 }
This page took 0.023936 seconds and 5 git commands to generate.