]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
x86/microcode/intel: Fix memleak in save_microcode_patch()
authorZhenzhong Duan <zhenzhong.duan@oracle.com>
Fri, 22 Jun 2018 11:51:26 +0000 (13:51 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 22 Jun 2018 12:42:59 +0000 (14:42 +0200)
commit0218c766263e70795c5eaa17d75ed54bca350950
tree694a5b2e8716fe124021284f498626ad71b0be14
parentd7609f4210cb716c11abfe2bfb5997191095d00b
x86/microcode/intel: Fix memleak in save_microcode_patch()

Free useless ucode_patch entry when it's replaced.

[ bp: Drop the memfree_patch() two-liner. ]

Signed-off-by: Zhenzhong Duan <zhenzhong.duan@oracle.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Srinivas REDDY Eeda <srinivas.eeda@oracle.com>
Link: http://lkml.kernel.org/r/888102f0-fd22-459d-b090-a1bd8a00cb2b@default
arch/x86/kernel/cpu/microcode/intel.c