mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
bitkeeper revision 1.160.2.1 (3e9404cdSqybQBuNBFNyXk6bQWczUw)
ioremap fix
This commit is contained in:
1 parent
a4270c3358
commit
b88856eac4
1 file changed
+1
-1
@@ -50,7 +50,7 @@ void * __ioremap(unsigned long phys_addr, unsigned long size, unsigned long flag
|
||||
if (phys_addr >= 0xA0000 && last_addr < 0x100000)
|
||||
return phys_to_virt(phys_addr);
|
||||
|
||||
if(remap_base + size > IOREMAP_VIRT_END) {
|
||||
if(remap_base + size > IOREMAP_VIRT_END-1) {
|
||||
printk("ioremap: going past end of reserved space!\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||