]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/microcode/intel: Set new revision only after a successful update
authorBorislav Petkov (AMD) <bp@alien8.de>
Fri, 1 Dec 2023 13:35:06 +0000 (14:35 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Mar 2025 15:45:55 +0000 (16:45 +0100)
commitdbdf088ff85cdc5e3e9859e919fa1e6eb1627fe1
treefeaaba8a371705abe6c42cc81c4ca3282099aae6
parent73aba0a0df21a0e58ce1cade2e89f901d3d0e174
x86/microcode/intel: Set new revision only after a successful update

commit 9c21ea53e6bd1104c637b80a0688040f184cc761 upstream

This was meant to be done only when early microcode got updated
successfully. Move it into the if-branch.

Also, make sure the current revision is read unconditionally and only
once.

Fixes: 080990aa3344 ("x86/microcode: Rework early revisions reporting")
Reported-by: Ashok Raj <ashok.raj@intel.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Tested-by: Ashok Raj <ashok.raj@intel.com>
Link: https://lore.kernel.org/r/ZWjVt5dNRjbcvlzR@a4bf019067fa.jf.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kernel/cpu/microcode/intel.c