Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 88cb773c authored by Philippe De Muyter's avatar Philippe De Muyter Committed by Geert Uytterhoeven
Browse files

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: default avatarPhilippe De Muyter <phdm@macqel.be>
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
parent 14545264
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -116,7 +116,7 @@ void __iomem *__ioremap(unsigned long physaddr, unsigned long size, int cachefla
	/*
	 * Don't allow mappings that wrap..
	 */
	if (!size || size > physaddr + size)
	if (!size || physaddr > (unsigned long)(-size))
		return NULL;

#ifdef CONFIG_AMIGA