linux/drivers/pci/pcie/aer
Jean Delvare 20ac75e563 PCI/AER: Fix aer_inject error codes
EPERM means "Operation not permitted", which doesn't reflect the lack of
support for AER.  EPROTONOSUPPORT (Protocol not supported) is a better
choice of error code if the device or its root port lack support for AER.

Likewise, EINVAL means "Invalid argument", which is not suitable for cases
where the AER error device is missing or unusable.  ENODEV and
EPROTONOSUPPORT, respectively, fit better.

Suggested-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
CC: Borislav Petkov <bp@suse.de>
CC: Prarit Bhargava <prarit@redhat.com>
2016-03-08 15:48:56 -06:00
..
aer_inject.c PCI/AER: Fix aer_inject error codes 2016-03-08 15:48:56 -06:00
aerdrv_acpi.c PCI/AER: Support ACPI HEST AER error sources for PCI domains other than 0 2014-01-13 12:18:55 -07:00
aerdrv_core.c PCI: Check for PCI_HEADER_TYPE_BRIDGE equality, not bitmask 2015-12-10 19:38:06 -06:00
aerdrv_errprint.c PCI/AER: Avoid info leak in __print_tlp_header() 2015-03-06 12:30:23 -06:00
aerdrv.c PCI: Remove aer_do_secondary_bus_reset() 2013-08-14 15:25:59 -06:00
aerdrv.h PCI: Remove aer_do_secondary_bus_reset() 2013-08-14 15:25:59 -06:00
ecrc.c PCIe AER: use pci_is_pcie() 2009-11-24 15:25:17 -08:00
Kconfig kconfig: use bool instead of boolean for type definition attributes 2015-01-07 13:08:04 +01:00
Kconfig.debug PCI: change PCI nomenclature in drivers/pci/ (non-comment changes) 2009-12-16 13:37:54 -08:00
Makefile PCI AER: software error injection 2009-06-16 14:30:14 -07:00