• Borislav Petkov's avatar
    x86/microcode/intel: Do the mc_saved_src NULL check first · f9524e6f
    Borislav Petkov authored
    
    
    ... 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: default avatarBorislav Petkov <bp@suse.de>
    Cc: Quentin Casasnovas <quentin.casasnovas@oracle.com>
    f9524e6f
intel_early.c 19.6 KB