From b8e4d46796380ea42448e54bcc46e7eff1a1ad45 Mon Sep 17 00:00:00 2001 From: Damien Zammit via Bug reports for the GNU Hurd Date: Sat, 28 Dec 2024 07:35:32 +0000 Subject: 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> --- acpi/acpi-ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3