]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Initialize upper and lower vars in pid_list_refill_irq()
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 7 Oct 2021 13:53:53 +0000 (09:53 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 7 Oct 2021 13:56:38 +0000 (09:56 -0400)
commitf7db54b8b0f619f055295237024f29dd85c52ace
tree2261f39dba0a476ccdd5582ac87c38aa8a72c470
parentba27a8abe0a3c9954d99ffabb57b46d85dd40786
tracing: Initialize upper and lower vars in pid_list_refill_irq()

The upper and lower variables are set as link lists to add into the sparse
array. If they are NULL, after the needed allocations are done, then there
is nothing to add. But they need to be initialized to NULL for this to
work.

Link: https://lore.kernel.org/all/221bc7ba-a475-1cb9-1bbe-730bb9c2d448@canonical.com/
Fixes: ba27a8abe0a3 ("tracing: Create a sparse bitmask for pid filtering")
Reported-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/pid_list.c