mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 23:22:31 +02:00
tracing: Fix unload_page for simple_ring_buffer init rollback
The unload_page callback expects the return value of load_page() as its
argument: ret = load_page(va); unload(ret). Fix the rollback code in
simple_ring_buffer_init_mm() where the descriptor's VA is used instead
of the loaded page address.
Link: https://patch.msgid.link/20260512141614.1759430-1-vdonnefort@google.com
Fixes: 635923081c ("tracing: load/unload page callbacks for simple_ring_buffer")
Signed-off-by: Vincent Donnefort <vdonnefort@google.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
This commit is contained in:
parent
c2d2856cf6
commit
a0a2f42a37
|
|
@ -430,7 +430,7 @@ int simple_ring_buffer_init_mm(struct simple_rb_per_cpu *cpu_buffer,
|
|||
|
||||
if (ret) {
|
||||
for (i--; i >= 0; i--)
|
||||
unload_page((void *)desc->page_va[i]);
|
||||
unload_page(bpages[i].page);
|
||||
unload_page(cpu_buffer->meta);
|
||||
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user