ia64/xen-unstable

changeset 353:8fec4dd2cebb

bitkeeper revision 1.160.2.1 (3e9404cdSqybQBuNBFNyXk6bQWczUw)

ioremap fix
author jws@cairnwell.research
date Wed Apr 09 11:32:29 2003 +0000 (2003-04-09)
parents 4fd13119bcc6
children 713997b6b61e
files xen/arch/i386/ioremap.c
line diff
     1.1 --- a/xen/arch/i386/ioremap.c	Wed Apr 09 10:38:33 2003 +0000
     1.2 +++ b/xen/arch/i386/ioremap.c	Wed Apr 09 11:32:29 2003 +0000
     1.3 @@ -50,7 +50,7 @@ void * __ioremap(unsigned long phys_addr
     1.4      if (phys_addr >= 0xA0000 && last_addr < 0x100000)
     1.5          return phys_to_virt(phys_addr);
     1.6  
     1.7 -    if(remap_base + size > IOREMAP_VIRT_END) {
     1.8 +    if(remap_base + size > IOREMAP_VIRT_END-1) {
     1.9        printk("ioremap: going past end of reserved space!\n");
    1.10        return NULL;
    1.11      }