[PATCH] pci enumeration on ixp2000: overflow in kernel/resource.c
authorLennert Buytenhek <buytenh@wantstofly.org>
Sat, 16 Apr 2005 22:25:58 +0000 (15:25 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 16 Apr 2005 22:25:58 +0000 (15:25 -0700)
commitb52402c783d8c16b11f146a244bb21086a94bf84
tree22b6a4a3623ba2eae08113367eab8b59929f43c0
parentfe4b334f8bcdf5359771666d5002b293212e4d3f
[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 <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/resource.c