x86/microcode: Use kmemdup() rather than duplicating its implementation
authorAndrzej Hajda <a.hajda@samsung.com>
Tue, 16 Feb 2016 08:43:20 +0000 (09:43 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 17 Feb 2016 07:46:08 +0000 (08:46 +0100)
commit9cc6f743c7724eb9abaf27904194c169db85dd31
tree32b04343260aeddaa3547e1c12f7c23bb50c2cd3
parent84aba677f009e20185aea322563389ad56e0ef7e
x86/microcode: Use kmemdup() rather than duplicating its implementation

The patch was generated using fixed coccinelle semantic patch
scripts/coccinelle/api/memdup.cocci.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1455612202-14414-3-git-send-email-bp@alien8.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/microcode/amd.c
arch/x86/kernel/cpu/microcode/intel.c