x86/ucode/AMD: make freeing of old ucode conditional
authorChao Gao <chao.gao@intel.com>
Fri, 30 Aug 2019 08:22:55 +0000 (10:22 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 30 Aug 2019 08:22:55 +0000 (10:22 +0200)
commit932f26d9d8825261c5a8c78b113efb6cb2ed2036
tree1f439fb38ffbb5fe2639778e66991637b88313cb
parent41c7700a00011ad08be3c9d71126b67e08e58ac3
x86/ucode/AMD: make freeing of old ucode conditional

It is certain to be NULL at least the first time through.

Reported-by: Sander Eikelenboom <linux@eikelenboom.it>
Signed-off-by: Chao Gao <chao.gao@intel.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/microcode_amd.c