]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/firmware/efi/arm-runtime.c
efi/arm*: Take the Memory Attributes table into account
[karo-tx-linux.git] / drivers / firmware / efi / arm-runtime.c
index 19283deac375d76a8de6e59796c60b930186ea40..17ccf0a8787a2cf3f7ea1869e2e06801da2c46ef 100644 (file)
@@ -77,9 +77,15 @@ static bool __init efi_virtmap_init(void)
                        systab_found = true;
                }
        }
-       if (!systab_found)
+       if (!systab_found) {
                pr_err("No virtual mapping found for the UEFI System Table\n");
-       return systab_found;
+               return false;
+       }
+
+       if (efi_memattr_apply_permissions(&efi_mm, efi_set_mapping_permissions))
+               return false;
+
+       return true;
 }
 
 /*