Submitter | Ard Biesheuvel |
---|---|
Date | Feb. 2, 2019, 9:41 a.m. |
Message ID | <20190202094119.13230-4-ard.biesheuvel@linaro.org> |
Download | mbox | patch |
Permalink | /patch/716605/ |
State | New |
Headers | show |
Comments
Patch
diff --git a/drivers/firmware/efi/memattr.c b/drivers/firmware/efi/memattr.c index 8986757eafaf..aac972b056d9 100644 --- a/drivers/firmware/efi/memattr.c +++ b/drivers/firmware/efi/memattr.c @@ -94,7 +94,7 @@ static bool entry_is_valid(const efi_memory_desc_t *in, efi_memory_desc_t *out) if (!(md->attribute & EFI_MEMORY_RUNTIME)) continue; - if (md->virt_addr == 0) { + if (md->virt_addr == 0 && md->phys_addr != 0) { /* no virtual mapping has been installed by the stub */ break; }