Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/sysmon If we pmf_register on attach, we should pmf_d...
details: https://anonhg.NetBSD.org/src/rev/dbd2fbec71fa
branches: trunk
changeset: 328683:dbd2fbec71fa
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Sun Apr 13 13:19:50 2014 +0000
description:
If we pmf_register on attach, we should pmf_deregister on detach.
diffstat:
sys/dev/sysmon/swwdog.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 4b65efc96f9c -r dbd2fbec71fa sys/dev/sysmon/swwdog.c
--- a/sys/dev/sysmon/swwdog.c Sun Apr 13 13:14:15 2014 +0000
+++ b/sys/dev/sysmon/swwdog.c Sun Apr 13 13:19:50 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: swwdog.c,v 1.12 2010/11/11 21:55:04 pooka Exp $ */
+/* $NetBSD: swwdog.c,v 1.13 2014/04/13 13:19:50 pgoyette Exp $ */
/*
* Copyright (c) 2004, 2005 Steven M. Bellovin
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: swwdog.c,v 1.12 2010/11/11 21:55:04 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: swwdog.c,v 1.13 2014/04/13 13:19:50 pgoyette Exp $");
/*
*
@@ -162,6 +162,7 @@
{
struct swwdog_softc *sc = device_private(self);
+ pmf_device_deregister(self);
swwdog_disarm(sc);
callout_destroy(&sc->sc_c);
sysctl_teardown(&swwdog_sysctllog);
Home |
Main Index |
Thread Index |
Old Index