Fix: statedump: consistently check task_cred_xxx() return value for NULL
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 20 Feb 2020 15:46:25 +0000 (10:46 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 20 Feb 2020 15:48:44 +0000 (10:48 -0500)
commitacdd4850c1150e6e419b6dd5f44d899996a8448c
treeb4dc6d44ead9b693459d4ba145414c1bc8dfa2a6
parent51831abd72db5af5c3c0f903e874860d4d95cae3
Fix: statedump: consistently check task_cred_xxx() return value for NULL

trace_lttng_statedump_process_user_ns() internally checks whether
user_ns is NULL. While this does not appear to be a possible return
value for task_cred_xxx(), err on the safe side and check for NULL here
as well to be consistent with the paranoid behavior of
trace_lttng_statedump_process_user_ns().

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lttng-statedump-impl.c
This page took 0.025928 seconds and 4 git commands to generate.