]> git.baikalelectronics.ru Git - kernel.git/commit
PCI/AER: Return error if AER is not supported
authorKeith Busch <keith.busch@intel.com>
Tue, 19 Dec 2017 21:06:40 +0000 (14:06 -0700)
committerBjorn Helgaas <helgaas@kernel.org>
Fri, 12 Jan 2018 00:41:05 +0000 (18:41 -0600)
commit355fd08007a3fab9346bc6a336a3557d0b1db554
treea0f3467479cf517bf6fca9d2cba138d8bb8769c7
parent814202c9c673387c11b3777489e7dee857d442f7
PCI/AER: Return error if AER is not supported

get_device_error_info() reads error information from registers in the AER
capability.  If we call it for a device that has no AER capability, it
should return an error, but previously it returned success.

Return 0 (error) if the device doesn't have an AER capability.

Signed-off-by: Keith Busch <keith.busch@intel.com>
[bhelgaas: changelog]
Signed-off-by: Bjorn Helgaas <helgaas@kernel.org>
drivers/pci/pcie/aer/aerdrv_core.c