Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757785Ab2BIQgu (ORCPT ); Thu, 9 Feb 2012 11:36:50 -0500 Received: from mx1.redhat.com ([209.132.183.28]:29729 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750978Ab2BIQgs (ORCPT ); Thu, 9 Feb 2012 11:36:48 -0500 From: Myron Stowe Subject: [PATCH] ACPI: Fix logic for removing mappings in 'acpi_unmap' To: lenb@kernel.org Cc: linux-acpi@vger.kernel.org, ying.huang@intel.com, tony.luck@intel.com, bhelgaas@google.com, trenn@suse.de, linux-kernel@vger.kernel.org Date: Thu, 09 Feb 2012 09:36:41 -0700 Message-ID: <20120209163641.26858.59399.stgit@amt.stowe> User-Agent: StGIT/0.14.3 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 897 Lines: 30 From: Myron Stowe Make sure the removal of mappings uses the same logic that put the mappings in place. Signed-off-by: Myron Stowe --- 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); -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/