]> git.baikalelectronics.ru Git - kernel.git/commit
script/sorttable: Fix some initialization problems
authorYinan Liu <yinan@linux.alibaba.com>
Tue, 18 Jan 2022 06:52:41 +0000 (14:52 +0800)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 18 Jan 2022 15:17:18 +0000 (10:17 -0500)
commit0d7346129650490c92a1a732ac42919f7c0afca1
treea404a8ce8c3219084ba315eb8bdb16254878f776
parent3ea9cf5b61972c993605abbb437258e265244dc0
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: e099573c11e6 ("scripts: ftrace - move the sort-processing in ftrace_init")
Tested-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Yinan Liu <yinan@linux.alibaba.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
scripts/sorttable.h