linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch] Potential inf.loop in bootmem.c ...
@ 2003-07-02 23:04 Davide Libenzi
  0 siblings, 0 replies; only message in thread
From: Davide Libenzi @ 2003-07-02 23:04 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: Andrew Morton


If __alloc_bootmem_core() fails with a goal and unaligned node_boot_start
it'll loop fovever.



- Davide



--- linux-2.5.73/mm/bootmem.c.orig	2003-07-02 14:55:47.000000000 -0700
+++ linux-2.5.73/mm/bootmem.c	2003-07-02 15:31:44.000000000 -0700
@@ -202,7 +201,7 @@
 		;
 	}

-	if (preferred) {
+	if (preferred > offset) {
 		preferred = offset;
 		goto restart_scan;
 	}

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-07-02 22:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-02 23:04 [patch] Potential inf.loop in bootmem.c Davide Libenzi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).