Commit 45202dba authored by Tetsuo Handa's avatar Tetsuo Handa Committed by Zheng Zengkai
Browse files

lib/smp_processor_id: fix imbalanced instrumentation_end() call

stable inclusion
from stable-v5.10.137
commit 3487aa558a664cb062a5b4cda0e9a31eb0451820
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I60PLB

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=3487aa558a664cb062a5b4cda0e9a31eb0451820

--------------------------------

[ Upstream commit bd27acaa ]

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: 126f21f0 ("lib/smp_processor_id: Move it into noinstr section")
Signed-off-by: default avatarTetsuo 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: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Reviewed-by: default avatarWei Li <liwei391@huawei.com>
parent 41e8f254
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment