Skip to content

Commit bd27aca

Browse files
Tetsuo Handaakpm00
authored andcommitted
lib/smp_processor_id: fix imbalanced instrumentation_end() call
Currently instrumentation_end() won't be called if printk_ratelimit() returned false. Link: https://lkml.kernel.org/r/[email protected] Fixes: 126f21f ("lib/smp_processor_id: Move it into noinstr section") Signed-off-by: Tetsuo Handa <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Alexandre Chartre <[email protected]> Cc: Peter Zijlstra <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 953257a commit bd27aca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/smp_processor_id.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ unsigned int check_preemption_disabled(const char *what1, const char *what2)
4747

4848
printk("caller is %pS\n", __builtin_return_address(0));
4949
dump_stack();
50-
instrumentation_end();
5150

5251
out_enable:
52+
instrumentation_end();
5353
preempt_enable_no_resched_notrace();
5454
out:
5555
return this_cpu;

0 commit comments

Comments
 (0)