mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 08:52:27 +00:00
The efi_info structure stores low 32 bits of memory map in efi_memmap and high 32 bits in efi_memmap_hi. While constructing pointer in the setup_e820(), need to take into account all 64 bit of the pointer. It is because on 64bit machine the function efi_get_memory_map() may return full 64bit pointer and before the patch that pointer was truncated. The issue is triggered on Parallles virtual machine and fixed with this patch. Signed-off-by: Dmitry Skorodumov <[email protected]> Cc: Denis V. Lunev <[email protected]> Cc: <[email protected]> Signed-off-by: Matt Fleming <[email protected]>