m68k MM off-by-one
Geert Uytterhoeven
maintainerPATCH 1/1 m68k MM off-by-one
M68k: Fix off-by-one error in zone size calculation (from Didier Mequignon and Petr Stehlik)
Signed-off-by Geert Uytterhoeven <[email protected]>
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