diff options
author | Myron Stowe <mstowe@redhat.com> | 2012-02-09 20:36:41 +0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2012-03-30 12:05:14 +0400 |
commit | 8cdde126aa60ced0d63ff137378e09dd01dfadda (patch) | |
tree | 3a28719dd6f8207125098fdf276ac20694aaf2c3 /drivers | |
parent | 37d2a3622d249d83413c92a1cd9e94b5237d0fcc (diff) | |
download | linux-8cdde126aa60ced0d63ff137378e09dd01dfadda.tar.xz |
ACPI: Fix logic for removing mappings in 'acpi_unmap'
Make sure the removal of mappings uses the same logic that put the
mappings in place.
Signed-off-by: Myron Stowe <myron.stowe@redhat.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/acpi/osl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index 412a1e04a922..5aef087d42d0 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c @@ -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); |