pid_t vppid;
/*
- * nsproxy can be NULL when scheduled out of exit.
+ * current nsproxy can be NULL when scheduled out of exit. pid_vnr uses
+ * the current thread nsproxy to perform the lookup.
*/
rcu_read_lock();
parent = rcu_dereference(current->real_parent);
- if (!parent->nsproxy)
+ if (!current->nsproxy)
vppid = 0;
else
vppid = task_tgid_vnr(parent);