Fix: statedump: check task_active_pid_ns return value for NULL
[lttng-modules.git] / lttng-statedump-impl.c
index 1c09e51a8ce6a454b4bb8c86b3e079789cc9cfcd..fb609e34edecf3c51f2572cc101ace8c27eef87a 100644 (file)
@@ -397,7 +397,7 @@ void lttng_statedump_process_ns(struct lttng_session *session,
        do {
                trace_lttng_statedump_process_state(session,
                        p, type, mode, submode, status, pid_ns);
-               pid_ns = pid_ns->parent;
+               pid_ns = pid_ns ? pid_ns->parent : NULL;
        } while (pid_ns);
 }
 
This page took 0.022762 seconds and 4 git commands to generate.