summaryrefslogtreecommitdiff
path: root/arch/x86/kernel/cpu/microcode/intel.c
diff options
context:
space:
mode:
authorJithu Joseph <jithu.joseph@intel.com>2022-11-17 11:59:57 -0800
committerBorislav Petkov <bp@suse.de>2022-11-18 21:43:18 +0100
commitcb5eceee816bf05667089869d822b9cbc919465a (patch)
tree60ada247a17aa91e9b42954131f4b114f156253b /arch/x86/kernel/cpu/microcode/intel.c
parenta4c30fa4ead5e6628e5ff5a45664ba7181acf6f1 (diff)
platform/x86/intel/ifs: Remove memory allocation from load path
IFS requires tests to be authenticated once for each CPU socket on a system. scan_chunks_sanity_check() was dynamically allocating memory to store the state of whether tests have been authenticated on each socket for every load operation. Move the memory allocation to init path and store the pointer in ifs_data struct. Also rearrange the adjacent error checking in init for a more simplified and natural flow. Suggested-by: Borislav Petkov <bp@alien8.de> Signed-off-by: Jithu Joseph <jithu.joseph@intel.com> Signed-off-by: Borislav Petkov <bp@suse.de> Reviewed-by: Tony Luck <tony.luck@intel.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20221117195957.28225-1-jithu.joseph@intel.com
Diffstat (limited to 'arch/x86/kernel/cpu/microcode/intel.c')
0 files changed, 0 insertions, 0 deletions