Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/marvell fix: panic at doing "vmstat -ev" after a PCI...
details: https://anonhg.NetBSD.org/src/rev/8f236da484aa
branches: trunk
changeset: 339543:8f236da484aa
user: knakahara <knakahara%NetBSD.org@localhost>
date: Tue Jul 28 01:57:55 2015 +0000
description:
fix: panic at doing "vmstat -ev" after a PCIe device detached.
diffstat:
sys/dev/marvell/mvpex.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 366ed3707946 -r 8f236da484aa sys/dev/marvell/mvpex.c
--- a/sys/dev/marvell/mvpex.c Tue Jul 28 01:25:00 2015 +0000
+++ b/sys/dev/marvell/mvpex.c Tue Jul 28 01:57:55 2015 +0000
@@ -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 @@
uint32_t mask;
int s;
+ evcnt_detach(&pexih->ih_evcnt);
+
intrtab = pexih->ih_intrtab;
s = splhigh();
Home |
Main Index |
Thread Index |
Old Index