]> www.infradead.org Git - nvme.git/commit
ftrace: Free ftrace hashes after they are replaced in the subops code
authorSteven Rostedt <rostedt@goodmis.org>
Thu, 17 Apr 2025 17:59:39 +0000 (13:59 -0400)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Thu, 17 Apr 2025 19:16:07 +0000 (15:16 -0400)
commitc45c585dde535e5ae2c363594bde3e05ce94a296
tree5fccb94b64c29918c16f363d837c62cc2acf3512
parent08275e59a75047ba8fc0b9853bfdfc88a124763d
ftrace: Free ftrace hashes after they are replaced in the subops code

The subops processing creates new hashes when adding and removing subops.
There were some places that the old hashes that were replaced were not
freed and this caused some memory leaks.

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/20250417135939.245b128d@gandalf.local.home
Fixes: 0ae6b8ce200d ("ftrace: Fix accounting of subop hashes")
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/ftrace.c