diff options
author | Linas Vepstas <linas@austin.ibm.com> | 2007-04-10 16:11:23 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-05-02 06:04:29 -0400 |
commit | 650f7b3b2f0ead0673e90452cf3dedde97c537ba (patch) | |
tree | e45e61e0bd0d39b18bef701e6d78e00e7c772bd6 /Documentation/powerpc | |
parent | 8fce6dd29fa9d1ac880bf0cb4528e9bd5878cf68 (diff) |
[POWERPC] pseries: Handle null iommu dma-window property correctly
Some versions of pSeries firmware fail to set up a
dma-window property for PCI slots that are unoccupied.
As a result, the loop searching for this propery, in
pci_dma_dev_setup_pSeriesLP(), can run to the end, resulting
in a NULL pointer dereference later in the routine. This
patch prevents the crash, and prints a warning message.
This is theoretically a rare error, as it occurs on what
is hopefully just beta levels of firmware. But just in case
this firmware escapes into the wild, this patch will avoid
the crash.
Signed-off-by: Linas Vepstas <linas@austin.ibm.com>
Diffstat (limited to 'Documentation/powerpc')
0 files changed, 0 insertions, 0 deletions