x86/ucode: Don't try to cope with NULL pointers in apply_microcode()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 1 Apr 2020 21:45:22 +0000 (22:45 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 3 Apr 2020 19:11:46 +0000 (20:11 +0100)
commit4853f03dee2ed17cc421260d669377db253f0dac
tree132f69267a3b81240f08236bf1b18d68ed6d08dd
parent62d7b32df7aedcbb6ca47ba136dc22c933207358
x86/ucode: Don't try to cope with NULL pointers in apply_microcode()

No paths to apply_microcode() pass a NULL pointer, and other hooks don't
tolerate one in the first place.  We can expect the core logic not to pass us
junk, so drop the checks.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/cpu/microcode/amd.c
xen/arch/x86/cpu/microcode/intel.c