]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: acpiphp: check whether _ADR evaluation succeeded
authorBjorn Helgaas <bhelgaas@google.com>
Wed, 20 Jun 2012 22:18:29 +0000 (16:18 -0600)
committerGuangyu Sun <guangyu.sun@oracle.com>
Wed, 17 Oct 2012 18:24:13 +0000 (11:24 -0700)
commitabba52a0dfe4e54678a59e8217cb3f44a4c79b79
tree417ad5108334f8f5301cc256ebfd68e5531f5b2d
parent27d2f39c1f5cd1a609d95ce76638a87ca800d85c
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>
[bwh: Backported to 2.6.32/3.0: adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Guangyu Sun <guangyu.sun@oracle.com>
drivers/pci/hotplug/acpiphp_glue.c