[POWERPC] EEH: Fix PCI bridge handling bug
authorLinas Vepstas <linas@austin.ibm.com>
Thu, 26 Jul 2007 22:33:58 +0000 (08:33 +1000)
committerPaul Mackerras <paulus@samba.org>
Fri, 17 Aug 2007 01:01:50 +0000 (11:01 +1000)
commit093eda3ce5dc3758c9a5e806ea6573bfffed3ff7
tree4bc69489b35b2861daf4f8254a2ae1a8211c64a4
parent12588da7cb57edc25355c8ae2a245f66d0d067d1
[POWERPC] EEH: Fix PCI bridge handling bug

The EEH code needs to ignore PCI bridges; sort-of.  It was ignoring
them in the wrong place, and thus failing to set up the
PCI_DN(dn)->pcidev pointer.  Imprudent dereferencing of this pointer
would lead to a crash on cards with bridges.

Signed-off-by: Linas Vepstas <linas@austin.ibm.com>
----
 arch/powerpc/platforms/pseries/eeh_cache.c |    9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/pseries/eeh_cache.c