patch-2.4.4 linux/mm/bootmem.c
Next file: linux/mm/filemap.c
Previous file: linux/lib/vsprintf.c
Back to the patch index
Back to the overall index
-  Lines: 18
-  Date:
Fri Apr 13 20:26:07 2001
-  Orig file: 
v2.4.3/linux/mm/bootmem.c
-  Orig date: 
Wed Oct 18 15:18:41 2000
diff -u --recursive --new-file v2.4.3/linux/mm/bootmem.c linux/mm/bootmem.c
@@ -176,6 +176,7 @@
 		preferred = 0;
 		goto restart_scan;
 	}
+	return NULL;
 found:
 	if (start >= eidx)
 		BUG();
@@ -316,7 +317,8 @@
 	/*
 	 * Whoops, we cannot satisfy the allocation request.
 	 */
-	BUG();
+	printk(KERN_ALERT "bootmem alloc of %lu bytes failed!\n", size);
+	panic("Out of memory");
 	return NULL;
 }
 
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)