patch-2.4.22 linux-2.4.22/arch/cris/mm/ioremap.c

Next file: linux-2.4.22/arch/i386/boot/bootsect.S
Previous file: linux-2.4.22/arch/cris/mm/init.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/arch/cris/mm/ioremap.c linux-2.4.22/arch/cris/mm/ioremap.c
@@ -146,7 +146,7 @@
 	 */
 	offset = phys_addr & ~PAGE_MASK;
 	phys_addr &= PAGE_MASK;
-	size = PAGE_ALIGN(last_addr) - phys_addr;
+	size = PAGE_ALIGN(last_addr+1) - phys_addr;
 
 	/*
 	 * Ok, go for it..

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)