Skip to content

Commit

Permalink
ACPI: Fix logic for removing mappings in 'acpi_unmap'
Browse files Browse the repository at this point in the history
Make sure the removal of mappings uses the same logic that put the
mappings in place.

Signed-off-by: Myron Stowe <[email protected]>
Signed-off-by: Len Brown <[email protected]>
  • Loading branch information
Myron Stowe authored and lenb committed Mar 30, 2012
1 parent 37d2a36 commit 8cdde12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/acpi/osl.c
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ static void acpi_unmap(acpi_physical_address pg_off, void __iomem *vaddr)
unsigned long pfn;

pfn = pg_off >> PAGE_SHIFT;
if (page_is_ram(pfn))
if (should_use_kmap(pfn))
kunmap(pfn_to_page(pfn));
else
iounmap(vaddr);
Expand Down

0 comments on commit 8cdde12

Please sign in to comment.