PCI/AER: Ignore non-PCIe AER error sources in aer_hest_parse()
authorBetty Dall <betty.dall@hp.com>
Fri, 13 Dec 2013 15:23:16 +0000 (08:23 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 13 Dec 2013 21:40:09 +0000 (14:40 -0700)
commit8e7f8d0b30d4e3e30007b10eb2916d970b5f8c93
treecc91e99f7633abf8c805542a23cc451946232d75
parent1c38108a086f1cca3700765607059a6d865910c2
PCI/AER: Ignore non-PCIe AER error sources in aer_hest_parse()

aer_set_firmware_first() searches the HEST for an error source descriptor
matching the specified PCI device.  It uses the apei_hest_parse() iterator
to call aer_hest_parse() for every descriptor in the HEST.

Previously, aer_hest_parse() incorrectly assumed every descriptor was for a
PCIe error source.  This patch adds a check to avoid that error.

[bhelgaas: factor check into helper, use in aer_hest_parse_aff(), changelog]
Signed-off-by: Betty Dall <betty.dall@hp.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pcie/aer/aerdrv_acpi.c