public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] MCA recovery verify pfn_valid
@ 2005-09-16 21:54 Russ Anderson
  2005-09-19 22:19 ` Russ Anderson
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Russ Anderson @ 2005-09-16 21:54 UTC (permalink / raw)
  To: linux-ia64


Verify the pfn is valid before calling pfn_to_page().

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

---------------------------------------------------------------------
 arch/ia64/kernel/mca_drv.c |    3 +++
 1 files changed, 3 insertions(+)

Index: linux-2.6.git#test/arch/ia64/kernel/mca_drv.c
=================================--- linux-2.6.git#test.orig/arch/ia64/kernel/mca_drv.c	2005-09-16 16:28:11.857773257 -0500
+++ linux-2.6.git#test/arch/ia64/kernel/mca_drv.c	2005-09-16 16:29:32.119181669 -0500
@@ -87,6 +87,9 @@ mca_page_isolate(unsigned long paddr)
 	if ( !ia64_phys_addr_valid(paddr) ) 
 		return ISOLATE_NG;
 
+	if ( !pfn_valid(paddr))
+		return ISOLATE_OK;
+
 	/* convert physical address to physical page number */
 	p = pfn_to_page(paddr>>PAGE_SHIFT);
 

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

end of thread, other threads:[~2005-09-20 22:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-16 21:54 [patch] MCA recovery verify pfn_valid Russ Anderson
2005-09-19 22:19 ` Russ Anderson
2005-09-20  7:34 ` Hidetoshi Seto
2005-09-20 22:07 ` Russ Anderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox