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:03 +0000 (10:48 -0500)
commit1964cccb936a6dec5de336946f904b4b1006560e
tree899b7d2c260334273216899067d949f58f478176
parentadcc8b5e0be84d0b8c4b414d7db5b8c54e0b0466
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.025495 seconds and 4 git commands to generate.