Skip to content
Commit 35140d39 authored by Yinan Liu's avatar Yinan Liu Committed by Steven Rostedt
Browse files

script/sorttable: Fix some initialization problems

elf_mcount_loc and mcount_sort_thread definitions are not
initialized immediately within the function, which can cause
the judgment logic to use uninitialized values when the
initialization logic of subsequent code fails.

Link: https://lkml.kernel.org/r/20211212113358.34208-2-yinan@linux.alibaba.com
Link: https://lkml.kernel.org/r/20220118065241.42364-1-yinan@linux.alibaba.com

Fixes: 72b3942a

 ("scripts: ftrace - move the sort-processing in ftrace_init")
Tested-by: default avatarNathan Chancellor <nathan@kernel.org>
Reviewed-by: default avatarNathan Chancellor <nathan@kernel.org>
Signed-off-by: default avatarYinan Liu <yinan@linux.alibaba.com>
Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent f37c3bbc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment