Commit 92f1d3b
ftrace: fix incorrect hash size in register_ftrace_direct()
The maximum of the ftrace hash bits is made fls(32) in
register_ftrace_direct(), which seems illogical. So, we fix it by making
the max hash bits FTRACE_HASH_MAX_BITS instead.
Link: https://lore.kernel.org/20250413014444.36724-1-dongml2@chinatelecom.cn
Fixes: d05cb47 ("ftrace: Fix modification of direct_function hash while in use")
Signed-off-by: Menglong Dong <dongml2@chinatelecom.cn>
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>1 parent c45c585 commit 92f1d3b
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5964 | 5964 | | |
5965 | 5965 | | |
5966 | 5966 | | |
5967 | | - | |
5968 | | - | |
5969 | | - | |
| 5967 | + | |
| 5968 | + | |
| 5969 | + | |
| 5970 | + | |
5970 | 5971 | | |
5971 | 5972 | | |
5972 | 5973 | | |
| |||
0 commit comments