Module Name:    src
Committed By:   msaitoh
Date:           Mon May 18 01:06:35 UTC 2015

Modified Files:
        src/sys/dev/pci: if_bge.c

Log Message:
 Add missing pci_intr_release() for the detach.


To generate a diff of this commit:
cvs rdiff -u -r1.289 -r1.290 src/sys/dev/pci/if_bge.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/if_bge.c
diff -u src/sys/dev/pci/if_bge.c:1.289 src/sys/dev/pci/if_bge.c:1.290
--- src/sys/dev/pci/if_bge.c:1.289	Sun May 17 14:23:15 2015
+++ src/sys/dev/pci/if_bge.c	Mon May 18 01:06:35 2015
@@ -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 @@ bge_release_resources(struct bge_softc *
 	/* 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;
 	}
 

Reply via email to