~lttng/lttng-modules/trunk

Viewing all changes in revision 1281.

  • Committer: Mathieu Desnoyers
  • Date: 2020-02-20 15:48:03 UTC
  • Revision ID: git-v1:1964cccb936a6dec5de336946f904b4b1006560e
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>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: