[patch] bte_copy nasid_index fix

From: Russ Anderson <rja_at_efs.americas.sgi.com>
Date: 2005-11-12 09:52:02
[patch] bte_copy nasid_index fix

The nasid_index was not being incremented if the
pointer was null, causing an infinite loop.


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

--------------------------------------------------------------
 arch/ia64/sn/kernel/bte.c |    1 +
 1 files changed, 1 insertion(+)

Index: test/arch/ia64/sn/kernel/bte.c
===================================================================
--- test.orig/arch/ia64/sn/kernel/bte.c	2005-11-02 15:09:24.420194342 -0600
+++ test/arch/ia64/sn/kernel/bte.c	2005-11-11 13:47:34.180408880 -0600
@@ -137,6 +137,7 @@ retry_bteop:
 			bte = bte_if_on_node(nasid_to_try[nasid_index],bte_if_index);
 
 			if (bte == NULL) {
+				nasid_index++;
 				continue;
 			}
 
-- 
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 12 09:52:57 2005

This archive was generated by hypermail 2.1.8 : 2005-11-12 09:53:04 EST