diff options
author | Myron Stowe <mstowe@redhat.com> | 2012-02-09 17:36:41 +0100 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2012-03-30 10:05:14 +0200 |
commit | 8cdde126aa60ced0d63ff137378e09dd01dfadda (patch) | |
tree | 3a28719dd6f8207125098fdf276ac20694aaf2c3 /drivers/acpi | |
parent | CPER failed to handle generic error records with multiple sections (diff) | |
download | linux-8cdde126aa60ced0d63ff137378e09dd01dfadda.tar.xz linux-8cdde126aa60ced0d63ff137378e09dd01dfadda.zip |
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/acpi')
-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); |