# This is a BitKeeper generated patch for the following project: # Project Name: Linux kernel tree # This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas: # ChangeSet 1.1104 -> 1.1105 # arch/i386/mm/ioremap.c 1.4 -> 1.5 # # The following is the BitKeeper ChangeSet Log # -------------------------------------------- # 03/09/12 len.brown@intel.com 1.1105 # fix off-by-one error in ioremap() # fixes kernel crash in acpi mode: http://bugzilla.kernel.org/show_bug.cgi?id=1085 # -------------------------------------------- # diff -Nru a/arch/i386/mm/ioremap.c b/arch/i386/mm/ioremap.c --- a/arch/i386/mm/ioremap.c Tue Sep 23 12:11:37 2003 +++ b/arch/i386/mm/ioremap.c Tue Sep 23 12:11:37 2003 @@ -140,7 +140,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..