x86/microcode/intel: Do the mc_saved_src NULL check first
authorBorislav Petkov <bp@suse.de>
Thu, 5 Feb 2015 19:11:41 +0000 (20:11 +0100)
committerBorislav Petkov <bp@suse.de>
Mon, 2 Mar 2015 19:31:11 +0000 (20:31 +0100)
commitf9524e6f5447277e238b419afc3d0712941fa2a5
treeb29d83d16599c077b541bf941d594e628cba3611
parent776d3cdc93d83808bf5929d716a56c69bbe01d2f
x86/microcode/intel: Do the mc_saved_src NULL check first

... and only then deref it. Also, shorten some variable names and rename
others so as to diminish the ubiquitous presence of the "mc_" prefix
everywhere and make it a bit more readable.

Use kcalloc so that we don't kfree() uninitialized memory on the unwind
path, as suggested by Quentin.

Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Quentin Casasnovas <quentin.casasnovas@oracle.com>
arch/x86/kernel/cpu/microcode/intel_early.c
This page took 0.027445 seconds and 5 git commands to generate.