Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Fix the conditional for failed interrupt establi...



details:   https://anonhg.NetBSD.org/src/rev/30edc2f0b480
branches:  trunk
changeset: 1025551:30edc2f0b480
user:      skrll <skrll%NetBSD.org@localhost>
date:      Fri Nov 12 07:06:06 2021 +0000

description:
Fix the conditional for failed interrupt establishment

diffstat:

 sys/dev/pci/ahcisata_pci.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 5a6e19977eec -r 30edc2f0b480 sys/dev/pci/ahcisata_pci.c
--- a/sys/dev/pci/ahcisata_pci.c        Fri Nov 12 06:56:50 2021 +0000
+++ b/sys/dev/pci/ahcisata_pci.c        Fri Nov 12 07:06:06 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ahcisata_pci.c,v 1.59 2021/11/08 11:01:51 rin Exp $    */
+/*     $NetBSD: ahcisata_pci.c,v 1.60 2021/11/12 07:06:06 skrll Exp $  */
 
 /*
  * Copyright (c) 2006 Manuel Bouyer.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ahcisata_pci.c,v 1.59 2021/11/08 11:01:51 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ahcisata_pci.c,v 1.60 2021/11/12 07:06:06 skrll Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ahcisata_pci.h"
@@ -366,7 +366,7 @@
            sizeof(intrbuf));
        psc->sc_ih[vec] = pci_intr_establish_xname(psc->sc_pc,
            psc->sc_pihp[vec], IPL_BIO, intr_handler, intr_arg, intr_xname);
-       if (psc->sc_ih == NULL) {
+       if (psc->sc_ih[vec] == NULL) {
                aprint_error_dev(self, "couldn't establish interrupt");
                if (intrstr != NULL)
                        aprint_error(" at %s", intrstr);



Home | Main Index | Thread Index | Old Index