aboutsummaryrefslogtreecommitdiff
path: root/acpi/acpi-ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'acpi/acpi-ops.c')
-rw-r--r--acpi/acpi-ops.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/acpi/acpi-ops.c b/acpi/acpi-ops.c
index 1aaec10c..47f7e3d2 100644
--- a/acpi/acpi-ops.c
+++ b/acpi/acpi-ops.c
@@ -73,6 +73,7 @@ S_acpi_get_pci_irq (struct protid *master,
int *irq)
{
error_t err;
+ int ret;
if (!master)
return EOPNOTSUPP;
@@ -81,6 +82,10 @@ S_acpi_get_pci_irq (struct protid *master,
if (err)
return err;
- *irq = acpi_get_irq_number(bus, dev, func);
- return err;
+ ret = acpi_get_irq_number(bus, dev, func);
+ if (ret < 0)
+ return -EIO;
+
+ *irq = ret;
+ return 0;
}