summaryrefslogtreecommitdiffstats
path: root/Documentation/x86
diff options
context:
space:
mode:
authorBorislav Petkov <bp@suse.de>2017-08-25 12:04:56 +0200
committerThomas Gleixner <tglx@linutronix.de>2017-08-29 10:59:28 +0200
commitaa78c1ccfab6018289bc2bfd0092d516d0a49ec5 (patch)
treee5a03ca7cf4701486be7c2c79c390095849f1537 /Documentation/x86
parent0e3258753f8183c63bf68bd274d2cc7e71e5f402 (diff)
downloadlinux-aa78c1ccfab6018289bc2bfd0092d516d0a49ec5.tar.bz2
x86/microcode/intel: Improve microcode patches saving flow
Avoid potentially dereferencing a NULL pointer when saving a microcode patch for early loading on the application processors. While at it, drop the IS_ERR() checking in favor of simpler, NULL-ptr checks which are sufficient and rename __alloc_microcode_buf() to memdup_patch() to more precisely denote what it does. No functionality change. Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Borislav Petkov <bp@suse.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: kernel-janitors@vger.kernel.org Link: http://lkml.kernel.org/r/20170825100456.n236w3jebteokfd6@pd.tnic
Diffstat (limited to 'Documentation/x86')
0 files changed, 0 insertions, 0 deletions