linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ACPI: Fix logic for removing mappings in 'acpi_unmap'
@ 2012-02-09 16:36 Myron Stowe
  2012-02-09 16:42 ` Bjorn Helgaas
  0 siblings, 1 reply; 4+ messages in thread
From: Myron Stowe @ 2012-02-09 16:36 UTC (permalink / raw)
  To: lenb; +Cc: linux-acpi, ying.huang, tony.luck, bhelgaas, trenn, linux-kernel

From: Myron Stowe <mstowe@redhat.com>

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>
---

 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 412a1e0..5aef087 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);


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-02-10  2:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-09 16:36 [PATCH] ACPI: Fix logic for removing mappings in 'acpi_unmap' Myron Stowe
2012-02-09 16:42 ` Bjorn Helgaas
2012-02-10  0:08   ` Myron Stowe
2012-02-10  2:19     ` Bjorn Helgaas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).