ath10k: reformat help text in ath10k_read_simulate_fw_crash()
[firefly-linux-kernel-4.4.55.git] / fs / proc / proc_net.c
index 4677bb7dc7c29cda9d7eb5825b86044851dbca6c..a63af3e0a6126b4445bb9a3cef8687038e670b58 100644 (file)
@@ -113,9 +113,11 @@ static struct net *get_proc_task_net(struct inode *dir)
        rcu_read_lock();
        task = pid_task(proc_pid(dir), PIDTYPE_PID);
        if (task != NULL) {
-               ns = task_nsproxy(task);
+               task_lock(task);
+               ns = task->nsproxy;
                if (ns != NULL)
                        net = get_net(ns->net_ns);
+               task_unlock(task);
        }
        rcu_read_unlock();