commit | e82b14bdd390c534750a191f9936f842bab255d4 | [log] [tgz] |
---|---|---|
author | Prarit Bhargava <prarit@redhat.com> | Wed Mar 20 12:04:43 2013 +0000 |
committer | Bjorn Helgaas <bhelgaas@google.com> | Wed Apr 03 17:08:45 2013 -0600 |
tree | 532b2a09ba445b84232d5674a1043121427b9325 | |
parent | f6161aa153581da4a3867a2d1a7caf4be19b6ec9 [diff] |
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>