Skip to content

Commit

Permalink
x86: Fixed NULL function pointer dereference in AMD microcode patch l…
Browse files Browse the repository at this point in the history
…oader.

Dereference took place in code part responsible for manual installation
of microcode patches through /dev/cpu/microcode.

Signed-off-by: Peter Oruba <peter.oruba@amd.com>
Cc: Peter Oruba <peter.oruba@amd.com>
Cc: Tigran Aivazian <tigran@aivazian.fsnet.co.uk>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Peter Oruba authored and Ingo Molnar committed Aug 15, 2008
1 parent d33dcb9 commit 636a317
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/x86/kernel/microcode.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ static int do_microcode_update(void)
old = current->cpus_allowed;

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)
goto out;
/*
Expand Down

0 comments on commit 636a317

Please sign in to comment.