]> git.baikalelectronics.ru Git - kernel.git/commit
sparc64: Skip bogus PCI bridge ranges.
authorDavid S. Miller <davem@davemloft.net>
Wed, 13 Aug 2014 06:27:01 +0000 (23:27 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Aug 2014 04:17:49 +0000 (21:17 -0700)
commit60a735164abeae10d35b391e9764f6c32ecb11ce
tree9747dae7206d7aa396ece4c22397d81ba848eba5
parentc604aa0ba07f0f18afb38a579042b9eab3babe7d
sparc64: Skip bogus PCI bridge ranges.

It seems that when a PCI Express bridge is not in use and has no devices
behind it, the ranges property is bogus.  Specifically the size property
is of the form [0xffffffff:...], and if you add this size to the resource
start address the 64-bit calculation will overflow.

Just check specifically for this size value signature and skip them.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/pci.c