From: Borislav Petkov Date: Thu, 5 Feb 2015 19:11:41 +0000 (+0100) Subject: x86/microcode/intel: Do the mc_saved_src NULL check first X-Git-Tag: omap-for-v4.2/o2_dc~178^2~1^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9524e6f5447277e238b419afc3d0712941fa2a5;p=pandora-kernel.git 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 Cc: Quentin Casasnovas --- Reading git-diff-tree failed