[patch] MCA recovery: pfn_valid() needs a pfn

From: Russ Anderson <rja_at_efs.americas.sgi.com>
Date: 2005-11-05 06:57:00
[patch] MCA recovery: pfn_valid() needs a pfn

paddr needs to be shifted by PAGE_SHIFT to be valid
input for pfn_valid().

Signed-off-by: Russ Anderson (rja@sgi.com)

--------------------------------------------------------------
 arch/ia64/kernel/mca_drv.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

Index: test/arch/ia64/kernel/mca_drv.c
===================================================================
--- test.orig/arch/ia64/kernel/mca_drv.c	2005-11-04 11:10:08.869613186 -0600
+++ test/arch/ia64/kernel/mca_drv.c	2005-11-04 11:10:59.376035037 -0600
@@ -88,7 +88,7 @@ mca_page_isolate(unsigned long paddr)
 	if (!ia64_phys_addr_valid(paddr))
 		return ISOLATE_NONE;
 
-	if (!pfn_valid(paddr))
+	if (!pfn_valid(paddr >> PAGE_SHIFT))
 		return ISOLATE_NONE;
 
 	/* convert physical address to physical page number */
-- 
Russ Anderson, OS RAS/Partitioning Project Lead  
SGI - Silicon Graphics Inc          rja@sgi.com
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Sat Nov 05 06:57:38 2005

This archive was generated by hypermail 2.1.8 : 2005-11-05 06:57:45 EST