aboutsummaryrefslogtreecommitdiffstats
path: root/arch/m68k/mm
diff options
context:
space:
mode:
authorPhilippe De Muyter <phdm@macqel.be>2009-12-06 14:28:41 -0500
committerGeert Uytterhoeven <geert@linux-m68k.org>2010-02-27 12:27:13 -0500
commit88cb773c5f8e45e48f3a89480610448974337cb0 (patch)
tree0dbb615f3eebace13263455c7117e9a665749793 /arch/m68k/mm
parent145452649d035e4e5152f6c4e6798c41960cad3e (diff)
m68k: Allow ioremapping top of memory
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 <phdm@macqel.be> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch/m68k/mm')
-rw-r--r--arch/m68k/mm/kmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/m68k/mm/kmap.c b/arch/m68k/mm/kmap.c
index df620ac2a296..cf93cdd515c5 100644
--- a/arch/m68k/mm/kmap.c
+++ b/arch/m68k/mm/kmap.c
@@ -116,7 +116,7 @@ void __iomem *__ioremap(unsigned long physaddr, unsigned long size, int cachefla
116 /* 116 /*
117 * Don't allow mappings that wrap.. 117 * Don't allow mappings that wrap..
118 */ 118 */
119 if (!size || size > physaddr + size) 119 if (!size || physaddr > (unsigned long)(-size))
120 return NULL; 120 return NULL;
121 121
122#ifdef CONFIG_AMIGA 122#ifdef CONFIG_AMIGA