allow ioremapping top of memory
PATCH 1/1 allow ioremapping top of memory
Hi Geert and all,
The test in __ioremap to reject memory ranges crossing the 0 boundary rejects also memory ranges ending at the end of the memory. Fix that.
Signed-off-by Philippe De Muyter <[email protected]>
arch/m68k/mm/kmap.c +1 -1
@@ -116,7 +115,7 @@ void __iomem *__ioremap(unsigned long ph/* * Don't allow mappings that wrap.. */ -if (!size || size > physaddr + size) +if (!size || physaddr > (unsigned long )(-size))return NULL ;#ifdef CONFIG_AMIGA
Geert Uytterhoeven
maintainerQuoted 2 lines · Philippe De Muyter
The test in
__ioremapto reject memory ranges crossing the 0 boundary rejects also memory ranges ending at the end of the memory. Fix that.
Thanks, will take it.
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