platform/x86/intel/ifs: Return a more appropriate error code
mainline inclusion from mainline-v6.2-rc1 commit f4e209e9 category: feature feature: Backport Intel In Field Scan(IFS) multi-blob images support bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I6L337 CVE: N/A Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/ commit/?id=f4e209e9 Intel-SIG: commit f4e209e9 ("platform/x86/intel/ifs: Return a more appropriate error code") ------------------------------------- platform/x86/intel/ifs: Return a more appropriate error code scan_chunks_sanity_check() returns -ENOMEM if it encounters an error while copying IFS test image from memory to Secure Memory. Return -EIO in this scenario, as it is more appropriate. 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:
Sohil Mehta <sohil.mehta@intel.com> Reviewed-by:
Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20221117035935.4136738-3-jithu.joseph@intel.com Signed-off-by:
Aichun Shi <aichun.shi@intel.com>
Loading
Please sign in to comment