diff options
author | Jan Beulich <JBeulich@suse.com> | 2012-02-24 12:41:53 +0100 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2012-03-30 09:51:57 +0200 |
commit | e252675fb722d4a307cc380a06a905f03cf9951c (patch) | |
tree | 0be44fc9eb7ab21b021b13f32bfdd8806d99488d /drivers/acpi | |
parent | PNPACPI: Fix device ref leaking in acpi_pnp_match (diff) | |
download | linux-e252675fb722d4a307cc380a06a905f03cf9951c.tar.xz linux-e252675fb722d4a307cc380a06a905f03cf9951c.zip |
ACPI: consistently use should_use_kmap()
... so that acpi_unmap()'s behavior gets in sync with acpi_map()'s.
Signed-off-by: Jan Beulich <jbeulich@suse.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); |