From: jsg Date: Mon, 14 Feb 2022 02:57:21 +0000 (+0000) Subject: test the correct pointer for acpi_intr_establish() result X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=23ea498649a96f0adad96960b586eb63cb4de864;p=openbsd test the correct pointer for acpi_intr_establish() result ok deraadt@ gnezdo@ --- diff --git a/sys/dev/acpi/dwgpio.c b/sys/dev/acpi/dwgpio.c index d08ec9faaf6..79a3220c793 100644 --- a/sys/dev/acpi/dwgpio.c +++ b/sys/dev/acpi/dwgpio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dwgpio.c,v 1.5 2021/12/29 17:52:22 patrick Exp $ */ +/* $OpenBSD: dwgpio.c,v 1.6 2022/02/14 02:57:21 jsg Exp $ */ /* * Copyright (c) 2020 Mark Kettenis * @@ -150,7 +150,7 @@ dwgpio_attach(struct device *parent, struct device *self, void *aux) sc->sc_ih[i] = acpi_intr_establish(aaa->aaa_irq[i], aaa->aaa_irq_flags[i], IPL_BIO, dwgpio_intr, sc, sc->sc_dev.dv_xname); - if (sc->sc_ih == NULL) { + if (sc->sc_ih[i] == NULL) { printf(": can't establish interrupt\n"); goto unmap; }