diff options
Diffstat (limited to 'kernel/pid.c')
-rw-r--r-- | kernel/pid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/pid.c b/kernel/pid.c index 42de9af8c524..78c0dbffde65 100644 --- a/kernel/pid.c +++ b/kernel/pid.c | |||
@@ -214,7 +214,7 @@ struct pid *alloc_pid(void) | |||
214 | int nr = -1; | 214 | int nr = -1; |
215 | struct pid_namespace *ns; | 215 | struct pid_namespace *ns; |
216 | 216 | ||
217 | ns = current->nsproxy->pid_ns; | 217 | ns = task_active_pid_ns(current); |
218 | pid = kmem_cache_alloc(ns->pid_cachep, GFP_KERNEL); | 218 | pid = kmem_cache_alloc(ns->pid_cachep, GFP_KERNEL); |
219 | if (!pid) | 219 | if (!pid) |
220 | goto out; | 220 | goto out; |
@@ -364,7 +364,7 @@ struct pid *find_ge_pid(int nr) | |||
364 | pid = find_pid(nr); | 364 | pid = find_pid(nr); |
365 | if (pid) | 365 | if (pid) |
366 | break; | 366 | break; |
367 | nr = next_pidmap(current->nsproxy->pid_ns, nr); | 367 | nr = next_pidmap(task_active_pid_ns(current), nr); |
368 | } while (nr > 0); | 368 | } while (nr > 0); |
369 | 369 | ||
370 | return pid; | 370 | return pid; |