Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > e13bdbccf28aef9f5083a287bdaf7b69 > files > 1

openafs.SLx-1.4.3-0.rc2.36.src.rpm

===================================================================
RCS file: /cvs/openafs/src/afs/LINUX/osi_probe.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- openafs/src/afs/LINUX/osi_probe.c	2006/10/06 13:59:54	1.14
+++ openafs/src/afs/LINUX/osi_probe.c	2006/11/08 18:56:08	1.15
@@ -1010,7 +1010,12 @@
 	ptr = aptr;
 #endif
 	if ((unsigned long)ptr < init_mm.start_code ||
-		(unsigned long)ptr > init_mm.end_data) {
+#if defined(AFS_AMD64_LINUX20_ENV)
+		(unsigned long)ptr > init_mm.brk)
+#else
+		(unsigned long)ptr > init_mm.end_data)
+#endif
+	{
 /*	     printk("address 0x%lx (from 0x%lx %d) is out of range in check_table. wtf?\n", (unsigned long)x, (unsigned long)ptr, i);*/
 	     continue;
 	}
@@ -1119,8 +1124,13 @@
 	printk("<7>osi_probe: %s                      try_harder\n", P->symbol);
 #endif
     for (offset = 0; offset < datalen; offset++, ptr++) {
-	if ((unsigned long)ptr < init_mm.start_code ||
-		(unsigned long)ptr > init_mm.end_data) {
+	 if ((unsigned long)ptr < init_mm.start_code ||
+#if defined(AFS_AMD64_LINUX20_ENV)
+		(unsigned long)ptr > init_mm.brk)
+#else
+		(unsigned long)ptr > init_mm.end_data)
+#endif
+	{
 /*	     printk("address 0x%lx (from 0x%lx %d) is out of range in check_table. wtf?\n", (unsigned long)x, (unsigned long)ptr, i);*/
 	     continue;
 	}