PCI: acpiphp: check whether _ADR evaluation succeeded
authorBjorn Helgaas <bhelgaas@google.com>
Wed, 20 Jun 2012 22:18:29 +0000 (16:18 -0600)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 10 Oct 2012 02:31:18 +0000 (03:31 +0100)
commitfc9964ef8f1b83db6c455ced22836b87eaa9b647
treef2165c1c91536f45989f41e79dca912c193d6ad7
parent163aec38df496440970fbbe37f24cd4be9fea1d8
PCI: acpiphp: check whether _ADR evaluation succeeded

commit dfb117b3e50c52c7b3416db4a4569224b8db80bb upstream.

Check whether we evaluated _ADR successfully.  Previously we ignored
failure, so we would have used garbage data from the stack as the device
and function number.

We return AE_OK so that we ignore only this slot and continue looking
for other slots.

Found by Coverity (CID 113981).

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/pci/hotplug/acpiphp_glue.c