]> git.ipfire.org Git - thirdparty/linux.git/commit
cpu: hotplug: Preserve per instance callback errors
authorBradley Morgan <include@grrlz.net>
Fri, 19 Jun 2026 16:37:17 +0000 (16:37 +0000)
committerThomas Gleixner <tglx@kernel.org>
Sun, 21 Jun 2026 18:44:00 +0000 (20:44 +0200)
commit673db10729fb121ea1b16fe57791a0cb9eac1eb5
treea60daf1d1cfe8eedb23711cb38aa7404272e583d
parentc94291914b200e10c72cef23c8e4c67eb4fdbcd9
cpu: hotplug: Preserve per instance callback errors

cpuhp_invoke_callback() unwinds earlier callbacks for the same
hotplug state when one instance fails. The rollback path currently
reuses ret, so a successful rollback can hide the original error and
make the failed transition look successful.

Keep the rollback result separate from the original error.

Fixes: 724a86881d03 ("smp/hotplug: Callback vs state-machine consistency")
Signed-off-by: Bradley Morgan <include@grrlz.net>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Cc: stable@vger.kernel.org
Link: https://patch.msgid.link/20260619163719.12103-1-include@grrlz.net
kernel/cpu.c