Skip to content

Commit a0a2f42

Browse files
vdonnefortrostedt
authored andcommitted
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: 6359230 ("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>
1 parent c2d2856 commit a0a2f42

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/trace/simple_ring_buffer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ int simple_ring_buffer_init_mm(struct simple_rb_per_cpu *cpu_buffer,
430430

431431
if (ret) {
432432
for (i--; i >= 0; i--)
433-
unload_page((void *)desc->page_va[i]);
433+
unload_page(bpages[i].page);
434434
unload_page(cpu_buffer->meta);
435435

436436
return ret;

0 commit comments

Comments
 (0)