[PATCH 1/2] eeh: Fixing a bug when pci structure is null

Linas Vepstas linasvepstas at gmail.com
Thu Jan 28 06:09:53 EST 2010


Hi,

Yes, that's really my sign off: I discussed this at length with Breno.
One comment:

2010/1/27  <leitao at linux.vnet.ibm.com>:
> During a EEH recover, the pci_dev structure can be null,

It can be null when an error is detected during device config (i.e. via
pci config space access through open firmware, using the OF device
node, instead of mmio/dma access), before the kernel has created
a pci_dev structure for the device.

Oddly enough, either this slipped through the cracks all this time,
or maybe pci_name() used to protect against nulls? Not sure.

-- Linas Vepstas


More information about the Linuxppc-dev mailing list