Module Name:    src
Committed By:   knakahara
Date:           Tue Jul 28 01:57:55 UTC 2015

Modified Files:
        src/sys/dev/marvell: mvpex.c

Log Message:
fix: panic at doing "vmstat -ev" after a PCIe device detached.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/dev/marvell/mvpex.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/marvell/mvpex.c
diff -u src/sys/dev/marvell/mvpex.c:1.13 src/sys/dev/marvell/mvpex.c:1.14
--- src/sys/dev/marvell/mvpex.c:1.13	Wed Jun 24 10:00:37 2015
+++ src/sys/dev/marvell/mvpex.c	Tue Jul 28 01:57:55 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: mvpex.c,v 1.13 2015/06/24 10:00:37 knakahara Exp $	*/
+/*	$NetBSD: mvpex.c,v 1.14 2015/07/28 01:57:55 knakahara Exp $	*/
 /*
  * Copyright (c) 2008 KIYOHARA Takashi
  * All rights reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mvpex.c,v 1.13 2015/06/24 10:00:37 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mvpex.c,v 1.14 2015/07/28 01:57:55 knakahara Exp $");
 
 #include "opt_pci.h"
 #include "pci.h"
@@ -703,6 +703,8 @@ mvpex_intr_disestablish(void *v, void *i
 	uint32_t mask;
 	int s;
 
+	evcnt_detach(&pexih->ih_evcnt);
+
 	intrtab = pexih->ih_intrtab;
 
 	s = splhigh();

Reply via email to