[PATCH] x86_64: Fix off by one in acpi table mapping
And fix the test to include the size Noticed by Vivek Goyal Signed-off-by: Andi Kleen <ak@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
7180d4fb83
commit
7a4a76cc10
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ char *__acpi_map_table(unsigned long phys_addr, unsigned long size)
|
|||
if (!phys_addr || !size)
|
||||
return NULL;
|
||||
|
||||
if (phys_addr < (end_pfn_map << PAGE_SHIFT))
|
||||
if (phys_addr+size <= (end_pfn_map << PAGE_SHIFT) + PAGE_SIZE)
|
||||
return __va(phys_addr);
|
||||
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in a new issue