]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
PCI/ACPI: Check acpi_resource_to_address64() return value
authorBjorn Helgaas <bhelgaas@google.com>
Fri, 22 Jun 2012 05:48:50 +0000 (23:48 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 15 May 2013 16:51:14 +0000 (10:51 -0600)
commitf6c1c8ff439ccadc333b3920c7073e0792bcb9af
tree42f39dc409ce0e70d540d08ed40ca4c8202e6e2e
parent12b03188ab2afed784e416b4fb1366b4a6915ac0
PCI/ACPI: Check acpi_resource_to_address64() return value

We should check the acpi_resource_to_address64() return value, which
also removes the need to validate the resource type beforehand.
No functional change.

Found by Coverity (CID 113815).

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/pci_root.c