]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
x86/microcode: Fix the ancient deprecated microcode loading method
authorBorislav Petkov <bp@suse.de>
Thu, 4 Apr 2019 20:14:07 +0000 (22:14 +0200)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commitc1597e308e42561e6bba84b048b16a0aff9dcd98
tree97d37c284bce753da700f30e13fa725415279df9
parentfc3e250a2fef1341ccb4897e509162a453ef8eff
x86/microcode: Fix the ancient deprecated microcode loading method

BugLink: https://bugs.launchpad.net/bugs/1838700
[ Upstream commit 24613a04ad1c0588c10f4b5403ca60a73d164051 ]

Commit

  2613f36ed965 ("x86/microcode: Attempt late loading only when new microcode is present")

added the new define UCODE_NEW to denote that an update should happen
only when newer microcode (than installed on the system) has been found.

But it missed adjusting that for the old /dev/cpu/microcode loading
interface. Fix it.

Fixes: 2613f36ed965 ("x86/microcode: Attempt late loading only when new microcode is present")
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Jann Horn <jannh@google.com>
Link: https://lkml.kernel.org/r/20190405133010.24249-3-bp@alien8.de
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
arch/x86/kernel/cpu/microcode/core.c