X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=lttng-context-vppid.c;h=365d97394e89c98094b43dacc5918ee353271c00;hb=de544ea58e0231054bb62e2c814c662b894d6e25;hp=3d55fc5d6a09750f23bb08561e9f8d9725ffb75e;hpb=dae90c280ac7573d94e74949cabf004b243db046;p=lttng-modules.git diff --git a/lttng-context-vppid.c b/lttng-context-vppid.c index 3d55fc5d..365d9739 100644 --- a/lttng-context-vppid.c +++ b/lttng-context-vppid.c @@ -48,11 +48,12 @@ void vppid_record(struct lttng_ctx_field *field, 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);