]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tracing: fprobe: Fix to remove recorded module addresses from filter
authorMasami Hiramatsu (Google) <mhiramat@kernel.org>
Wed, 24 Sep 2025 00:26:39 +0000 (09:26 +0900)
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>
Wed, 24 Sep 2025 14:18:26 +0000 (23:18 +0900)
commitc539feff3c8f8c86213eee2b237410714712c326
tree118ac1fd65083afb6c6796b7c3d3879487812dd2
parentdc3382fffdec2c1d6df5836c88fa37b39cd8651e
tracing: fprobe: Fix to remove recorded module addresses from filter

Even if there is a memory allocation failure in fprobe_addr_list_add(),
there is a partial list of module addresses. So remove the recorded
addresses from filter if exists.
This also removes the redundant ret local variable.

Fixes: a3dc2983ca7b ("tracing: fprobe: Cleanup fprobe hash when module unloading")
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Cc: stable@vger.kernel.org
Reviewed-by: Menglong Dong <menglong8.dong@gmail.com>
kernel/trace/fprobe.c