diff options
author | Steven Rostedt <rostedt@goodmis.org> | 2025-04-17 10:40:17 -0400 |
---|---|---|
committer | Steven Rostedt (Google) <rostedt@goodmis.org> | 2025-04-17 15:15:05 -0400 |
commit | 31d1139956112dd047a70b263f4d578921de779a (patch) | |
tree | ce7d8f83b4ec7c6c62fd760bc5de44e452f872e9 /rust/helpers/workqueue.c | |
parent | 8ffd015db85fea3e15a77027fda6c02ced4d2444 (diff) | |
download | linux-31d1139956112dd047a70b263f4d578921de779a.tar.gz linux-31d1139956112dd047a70b263f4d578921de779a.tar.bz2 linux-31d1139956112dd047a70b263f4d578921de779a.zip |
ftrace: Initialize variables for ftrace_startup/shutdown_subops()
The reworking to fix and simplify the ftrace_startup_subops() and the
ftrace_shutdown_subops() made it possible for the filter_hash and
notrace_hash variables to be used uninitialized in a way that the compiler
did not catch it.
Initialize both filter_hash and notrace_hash to the EMPTY_HASH as that is
what they should be if they never are used.
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Link: https://lore.kernel.org/20250417104017.3aea66c2@gandalf.local.home
Reported-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
Tested-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
Fixes: 0ae6b8ce200d ("ftrace: Fix accounting of subop hashes")
Closes: https://lore.kernel.org/all/1db64a42-626d-4b3a-be08-c65e47333ce2@linux.ibm.com/
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'rust/helpers/workqueue.c')
0 files changed, 0 insertions, 0 deletions