]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: aer_inject: Fix return values when device not found
authorPrarit Bhargava <prarit@redhat.com>
Wed, 20 Mar 2013 12:04:43 +0000 (12:04 +0000)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 3 Apr 2013 23:08:45 +0000 (17:08 -0600)
commit76968003f34c78a02ea70ef56c28934b2ae00811
tree532b2a09ba445b84232d5674a1043121427b9325
parent1d627f8ebb8f17386e39f8027c369ddadbf55bc3
PCI: aer_inject: Fix return values when device not found

Currently the aer_inject driver returns -ENOTTY when the target PCIe
device root port is not found or if the device or root port doesn't
support AER.

In the case where the root port isn't found, the driver should return
-ENODEV, and in the other cases it should return -EPERM.

Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pcie/aer/aer_inject.c