summaryrefslogtreecommitdiff
path: root/rust/zerocopy/src/git@git.tavy.me:linux-stable.git
diff options
context:
space:
mode:
authorVincent Donnefort <vdonnefort@google.com>2026-07-09 17:00:15 +0100
committerSteven Rostedt <rostedt@goodmis.org>2026-07-10 14:04:26 -0400
commitec082d0b978b5fb4c11205ccce63587ac94c74e1 (patch)
tree13311750e22d84e82464f58e72755888b1bc7af3 /rust/zerocopy/src/git@git.tavy.me:linux-stable.git
parent42e74d8f21ce448fe12ba3dd59db817b3e977f49 (diff)
tracing/remotes: Fix leak in trace_remote_alloc_buffer() error path
If page allocation fails in trace_remote_alloc_buffer(), desc->nr_cpus is not yet incremented for the current CPU. As a consequence, on error, half-allocated rb_desc will not be freed in trace_remote_free_buffer(). Increment desc->nr_cpus as soon as the first allocation for the current CPU has succeeded. Link: https://patch.msgid.link/20260709160017.1729517-2-vdonnefort@google.com Fixes: 96e43537af54 ("tracing: Introduce trace remotes") Reported-by: Sashiko <sashiko-bot@kernel.org> Signed-off-by: Vincent Donnefort <vdonnefort@google.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'rust/zerocopy/src/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions