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/a636d8e0-ad32-5888-acac-671f7f553bb3@I-love.SAKURA.ne.jp Fixes: 126f21f ("lib/smp_processor_id: Move it into noinstr section") Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Alexandre Chartre <alexandre.chartre@oracle.com> Cc: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent 953257a commit bd27aca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)