Skip to contentSkip to conversation

m68k MM off-by-one

PATCH New Geert Uytterhoeven 1 participant 1 message Oct 2, 2004 m68k architecture

lore
Share & tools
lore

Geert Uytterhoeven

author maintainer
#0 lore raw

PATCH 1/1 m68k MM off-by-one

M68k: Fix off-by-one error in zone size calculation (from Didier Mequignon and Petr Stehlik)

arch/m68k/mm/motorola.c renamed from arch/m68k/mm/motorola.c.old +1 -1
@@ -264,7 +264,7 @@
 	printk ("before free_area_init\n");
 #endif
 	zones_size[0] = (mach_max_dma_address < (unsigned long)high_memory ?
-			 mach_max_dma_address : (unsigned long)high_memory);
+			 (mach_max_dma_address+1) : (unsigned long)high_memory);
 	zones_size[1] = (unsigned long)high_memory - zones_size[0];
 
 	zones_size[0] = (zones_size[0] - PAGE_OFFSET) >> PAGE_SHIFT;

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds