summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2016-02-18 12:50:45 (GMT)
committerBjorn Helgaas <bhelgaas@google.com>2016-03-08 21:48:56 (GMT)
commit20ac75e563d09f56fb00caa25a3afdb88573472d (patch)
treed120ec3d1779132a8bb0b085943e7b150f98cbc4 /fs
parent0e6053dc6e7a42c8ba9ce6e81adb3350c7df4bc8 (diff)
downloadlinux-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 'fs')
0 files changed, 0 insertions, 0 deletions