Commit 9cc01ce7 authored by Ard Biesheuvel's avatar Ard Biesheuvel Committed by zhaoxiaoqiang11
Browse files

efi: Accept version 2 of memory attributes table

stable inclusion
from stable-v5.10.168
commit 55cf65461b2090ee541e77664080c05cd2a03bbd
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7URR4

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=55cf65461b2090ee541e77664080c05cd2a03bbd



----------------------------------------------------

commit 636ab417 upstream.

UEFI v2.10 introduces version 2 of the memory attributes table, which
turns the reserved field into a flags field, but is compatible with
version 1 in all other respects. So let's not complain about version 2
if we encounter it.

Cc: <stable@vger.kernel.org>
Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarzhaoxiaoqiang11 <zhaoxiaoqiang11@jd.com>
parent 61c7f2c8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment