[PATCH] x86/microcode/intel: Fix memleak in save_microcode_patch()

2018-06-22 Thread Borislav Petkov
From: Zhenzhong Duan Free useless ucode_patch entry when it's replaced. Signed-off-by: Zhenzhong Duan Cc: Srinivas REDDY Eeda Cc: x86-ml Link: http://lkml.kernel.org/r/888102f0-fd22-459d-b090-a1bd8a00cb2b@default [ Drop the memfree_patch() two-liner. ] Signed-off-by: Borislav Petkov --- arc

Re: [PATCH] x86/microcode/intel: Fix memleak in save_microcode_patch

2018-06-01 Thread Borislav Petkov
On Thu, May 31, 2018 at 09:51:05PM -0700, Zhenzhong Duan wrote: > Free useless ucode_patch entry when it's replaced. > > Signed-off-by: Zhenzhong Duan > --- > arch/x86/kernel/cpu/microcode/intel.c | 10 +- > 1 files changed, 9 insertions(+), 1 deletions(-) > > diff --git a/arch/x86/ke

[PATCH] x86/microcode/intel: Fix memleak in save_microcode_patch

2018-05-31 Thread Zhenzhong Duan
Free useless ucode_patch entry when it's replaced. Signed-off-by: Zhenzhong Duan --- arch/x86/kernel/cpu/microcode/intel.c | 10 +- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/arch/x86/kernel/cpu/microcode/intel.c b/arch/x86/kernel/cpu/microcode/intel.c index 1c2cfa