aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Zammit via Bug reports for the GNU Hurd <bug-hurd@gnu.org>2024-12-28 07:35:32 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-12-28 10:00:24 +0100
commitb8e4d46796380ea42448e54bcc46e7eff1a1ad45 (patch)
tree123bdecb716eddb171ad5b5699cba77ac63ae6ed
parent1e977cd95a8f7bf071b4ef831e6971565a1267d1 (diff)
downloadhurd-b8e4d46796380ea42448e54bcc46e7eff1a1ad45.tar.gz
hurd-b8e4d46796380ea42448e54bcc46e7eff1a1ad45.tar.bz2
hurd-b8e4d46796380ea42448e54bcc46e7eff1a1ad45.zip
acpi: Better error handling on S_acpi_get_pci_irq
Return positive error code when return value indicates error. Message-ID: <20241228073512.711999-1-damien@zamaudio.com>
-rw-r--r--acpi/acpi-ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/acpi/acpi-ops.c b/acpi/acpi-ops.c
index 47f7e3d2..16d96e71 100644
--- a/acpi/acpi-ops.c
+++ b/acpi/acpi-ops.c
@@ -84,7 +84,7 @@ S_acpi_get_pci_irq (struct protid *master,
ret = acpi_get_irq_number(bus, dev, func);
if (ret < 0)
- return -EIO;
+ return EIO;
*irq = ret;
return 0;