History

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.

Vincent Donnefort committed 6 months ago

Commit a0a2f421 parent c2d28561 file · +1 −1Browse files

Unified · Split

kernel/trace/simple_ring_buffer.c+1−1
@@ -430,7 +430,7 @@ int simple_ring_buffer_init_mm(struct simple_rb_per_cpu *cpu_buffer, · 429 unmodified lines
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;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t