提交 636a3178 编写于 作者: P Peter Oruba 提交者: Ingo Molnar

x86: Fixed NULL function pointer dereference in AMD microcode patch loader.

Dereference took place in code part responsible for manual installation
of microcode patches through /dev/cpu/microcode.
Signed-off-by: NPeter Oruba <peter.oruba@amd.com>
Cc: Peter Oruba <peter.oruba@amd.com>
Cc: Tigran Aivazian <tigran@aivazian.fsnet.co.uk>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 d33dcb9e
...@@ -127,7 +127,8 @@ static int do_microcode_update(void) ...@@ -127,7 +127,8 @@ static int do_microcode_update(void)
old = current->cpus_allowed; old = current->cpus_allowed;
while ((cursor = microcode_ops->get_next_ucode(&new_mc, cursor)) > 0) { while ((cursor = microcode_ops->get_next_ucode(&new_mc, cursor)) > 0) {
error = microcode_ops->microcode_sanity_check(new_mc); if (microcode_ops->microcode_sanity_check != NULL)
error = microcode_ops->microcode_sanity_check(new_mc);
if (error) if (error)
goto out; goto out;
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册