VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   33 Branches   55 Tags
author: Heiner Kallweit <hkallweit1@gmail.com> 2021-04-30 16:22:51 +0200 committer: Ard Biesheuvel <ardb@kernel.org> 2021-05-22 14:05:13 +0200 commit: 45add3cc99feaaf57d4b6f01d52d532c16a1caee parent: 668a84c1bfb2b3fd5a10847825a854d63fac7baa
Commit Summary:
efi: Allow EFI_MEMORY_XP and EFI_MEMORY_RO both to be cleared
Diffstat:
1 file changed, 0 insertions, 5 deletions
diff --git a/drivers/firmware/efi/memattr.c b/drivers/firmware/efi/memattr.c
index 5737cb0fcd44..0a9aba5f9cef 100644
--- a/drivers/firmware/efi/memattr.c
+++ b/drivers/firmware/efi/memattr.c
@@ -67,11 +67,6 @@ static bool entry_is_valid(const efi_memory_desc_t *in, efi_memory_desc_t *out)
 		return false;
 	}
 
-	if (!(in->attribute & (EFI_MEMORY_RO | EFI_MEMORY_XP))) {
-		pr_warn("Entry attributes invalid: RO and XP bits both cleared\n");
-		return false;
-	}
-
 	if (PAGE_SIZE > EFI_PAGE_SIZE &&
 	    (!PAGE_ALIGNED(in->phys_addr) ||
 	     !PAGE_ALIGNED(in->num_pages << EFI_PAGE_SHIFT))) {