android_kernel_oneplus_msm8998/arch/x86/kernel/cpu/microcode
Borislav Petkov f9524e6f54 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>
2015-03-02 20:31:11 +01:00
..
amd.c x86, microcode, AMD: Do not use smp_processor_id() in preemtible context 2014-12-01 11:51:05 +01:00
amd_early.c x86, microcode: Reload microcode on resume 2014-12-06 13:03:03 +01:00
core.c x86, microcode: Return error from driver init code when loader is disabled 2015-01-28 09:23:40 +01:00
core_early.c x86, microcode: Reload microcode on resume 2014-12-06 13:03:03 +01:00
intel.c x86/microcode/intel: Handle truncated microcode images more robustly 2015-02-19 12:42:23 +01:00
intel_early.c x86/microcode/intel: Do the mc_saved_src NULL check first 2015-03-02 20:31:11 +01:00
intel_lib.c x86, microcode: Move to a proper location 2014-01-13 20:00:12 +01:00
Makefile x86, microcode: Move to a proper location 2014-01-13 20:00:12 +01:00