Fix: statedump: check task_active_pid_ns return value for NULL
[lttng-modules.git] / lttng-statedump-impl.c
index ecec4f0bc42bb12f84ce5a9ac1fa33c62edbf3df..baa5a1efd33e56aa7ab545766e41b7fde363b458 100644 (file)
@@ -384,7 +384,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.022615 seconds and 4 git commands to generate.