PCI/AER: Set dev->__aer_firmware_first only for matching devices
authorBjorn Helgaas <bhelgaas@google.com>
Thu, 6 Jun 2013 18:10:48 +0000 (12:10 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 6 Jun 2013 20:33:38 +0000 (14:33 -0600)
commit8d2a171f18f7cc9271ee3b9f1355fa4a13380320
tree74e0ae8bd4835415f0f016d954700e602c605f4f
parenta6bd73cdc93ec03781ff99beb5b465fd6ea3a784
PCI/AER: Set dev->__aer_firmware_first only for matching devices

Previously, we always updated info->firmware_first, even for HEST entries
that didn't match the device.  Therefore, if the last HEST descriptor was
a PCIe structure that didn't match the device, we always cleared
dev->__aer_firmware_first.

Tested-by: Betty Dall <betty.dall@hp.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pcie/aer/aerdrv_acpi.c