Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH] Fix potential SPARSEMEM bug
@ 2007-03-20 15:56 Atsushi Nemoto
  2007-03-20 16:24 ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: Atsushi Nemoto @ 2007-03-20 15:56 UTC (permalink / raw)
  To: linux-mips; +Cc: ralf

The first pfn of zones should be min_low_pfn, not 0.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
---
diff --git a/arch/mips/mm/init.c b/arch/mips/mm/init.c
index f08ae71..25abe91 100644
--- a/arch/mips/mm/init.c
+++ b/arch/mips/mm/init.c
@@ -377,7 +377,7 @@ void __init paging_init(void)
 #ifdef CONFIG_FLATMEM
 	free_area_init(zones_size);
 #else
-	pfn = 0;
+	pfn = min_low_pfn;
 	for (i = 0; i < MAX_NR_ZONES; i++)
 		for (j = 0; j < zones_size[i]; j++, pfn++)
 			if (!page_is_ram(pfn))

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

* Re: [PATCH] Fix potential SPARSEMEM bug
  2007-03-20 15:56 [PATCH] Fix potential SPARSEMEM bug Atsushi Nemoto
@ 2007-03-20 16:24 ` Ralf Baechle
  0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2007-03-20 16:24 UTC (permalink / raw)
  To: Atsushi Nemoto; +Cc: linux-mips

On Wed, Mar 21, 2007 at 12:56:28AM +0900, Atsushi Nemoto wrote:

> The first pfn of zones should be min_low_pfn, not 0.

This one indeed looks like it will strike on some configs.  Applied.

Thanks,

  Ralf

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

end of thread, other threads:[~2007-03-20 21:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-20 15:56 [PATCH] Fix potential SPARSEMEM bug Atsushi Nemoto
2007-03-20 16:24 ` Ralf Baechle

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