]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit6e75501121f958baa7187e3f04ad908de1d31468
treee4542ba7b987f2fb7e7a8f7659cc0db2905906d4
parentdadb61771772b25d763566f728cbc645c81a51ca
[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