]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tracing: Fix desc in error path for the trace remote test module
authorVincent Donnefort <vdonnefort@google.com>
Fri, 15 May 2026 20:16:16 +0000 (21:16 +0100)
committerSteven Rostedt <rostedt@goodmis.org>
Sat, 16 May 2026 20:11:04 +0000 (16:11 -0400)
commit55a0005518195fdea1fd2991b07644f8dc97ea8e
tree2ec0f9f1024e3977336636259651beea1886a505
parent96350db80e0acd733e9b9ef61c0d910790b27289
tracing: Fix desc in error path for the trace remote test module

During initialisation in remote_test_load(), if one of the
simple_ring_buffer fails to initialise, the error path attempts to
rollback initialised buffers. However, the rollback incorrectly uses the
global pointer to the trace descriptor, which is only set upon
successful load completion. Fix the error path by using the local
pointer to the descriptor.

Link: https://patch.msgid.link/20260515201616.337469-1-vdonnefort@google.com
Fixes: ea908a2b79c8 ("tracing: Add a trace remote module for testing")
Reported-by: Sashiko <sashiko-bot@kernel.org>
Signed-off-by: Vincent Donnefort <vdonnefort@google.com>
base-commit: 5d6919055dec134de3c40167a490f33c74c12581
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/remote_test.c