diff options
author | Jean Delvare <jdelvare@suse.de> | 2016-02-18 12:50:45 (GMT) |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2016-03-08 21:48:56 (GMT) |
commit | 20ac75e563d09f56fb00caa25a3afdb88573472d (patch) | |
tree | d120ec3d1779132a8bb0b085943e7b150f98cbc4 /mm/swap.c | |
parent | 0e6053dc6e7a42c8ba9ce6e81adb3350c7df4bc8 (diff) | |
download | linux-20ac75e563d09f56fb00caa25a3afdb88573472d.tar.xz |
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>
Diffstat (limited to 'mm/swap.c')
0 files changed, 0 insertions, 0 deletions