Commit [b52402]  Maximize  Restore  History

[PATCH] pci enumeration on ixp2000: overflow in kernel/resource.c

IXP2000 (ARM-based) platforms use a separate 'struct resource' for PCI MEM
space. Resource allocation for PCI BARs always fails because the 'root'
resource (the IXP2000 PCI MEM resource) always has the entire address space
(00000000-ffffffff) free, and find_resource() calculates the size of that
range as ffffffff-00000000+1=0, so all allocations fail because it thinks
there is no space.

(akpm: pls. double-check)

Signed-off-by: Andrew Morton <>
Signed-off-by: Linus Torvalds <>

Lennert Buytenhek Lennert Buytenhek 2005-04-16

Linus Torvalds Linus Torvalds 2005-04-16

changed kernel
changed kernel/resource.c
kernel/resource.c Diff Switch to side-by-side view