]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/x86/mm/ioremap.c
x86, early_ioremap: fix fencepost error
[linux-2.6-omap-h63xx.git] / arch / x86 / mm / ioremap.c
index 6ab3196d12b412979cbfba55467968b513670a49..10b52309aefd37634f87167f52fd8660fac26394 100644 (file)
@@ -614,7 +614,7 @@ void __init *early_ioremap(unsigned long phys_addr, unsigned long size)
         */
        offset = phys_addr & ~PAGE_MASK;
        phys_addr &= PAGE_MASK;
-       size = PAGE_ALIGN(last_addr) - phys_addr;
+       size = PAGE_ALIGN(last_addr + 1) - phys_addr;
 
        /*
         * Mappings have to fit in the FIX_BTMAP area.