linux/arch/x86/kernel/cpu/microcode
Borislav Petkov aa78c1ccfa 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
2017-08-29 10:59:28 +02:00
..
amd.c x86/microcode/AMD: Free unneeded patch before exit from update_cache() 2017-07-25 11:26:19 +02:00
core.c x86/microcode: Look for the initrd at the correct address on 32-bit 2017-06-20 12:54:24 +02:00
intel.c x86/microcode/intel: Improve microcode patches saving flow 2017-08-29 10:59:28 +02:00
Makefile x86/microcode/intel: Remove intel_lib.c 2016-10-25 12:28:59 +02:00