Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Add missing pci_intr_release() for the detach.



details:   https://anonhg.NetBSD.org/src/rev/7a261164f49c
branches:  trunk
changeset: 808448:7a261164f49c
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Mon May 18 01:06:35 2015 +0000

description:
Add missing pci_intr_release() for the detach.

diffstat:

 sys/dev/pci/if_bge.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 3de528cee575 -r 7a261164f49c sys/dev/pci/if_bge.c
--- a/sys/dev/pci/if_bge.c      Mon May 18 00:55:09 2015 +0000
+++ b/sys/dev/pci/if_bge.c      Mon May 18 01:06:35 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_bge.c,v 1.289 2015/05/17 14:23:15 msaitoh Exp $     */
+/*     $NetBSD: if_bge.c,v 1.290 2015/05/18 01:06:35 msaitoh Exp $     */
 
 /*
  * Copyright (c) 2001 Wind River Systems
@@ -79,7 +79,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.289 2015/05/17 14:23:15 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.290 2015/05/18 01:06:35 msaitoh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -4146,6 +4146,9 @@
        /* Disestablish the interrupt handler */
        if (sc->bge_intrhand != NULL) {
                pci_intr_disestablish(sc->sc_pc, sc->bge_intrhand);
+#ifdef __HAVE_PCI_MSI_MSIX
+               pci_intr_release(sc->sc_pc, sc->bge_pihp, 1);
+#endif
                sc->bge_intrhand = NULL;
        }
 



Home | Main Index | Thread Index | Old Index