If we pmf_register on attach, we should pmf_deregister on detach.
This commit is contained in:
parent
645afb65f7
commit
aa1b1c5be2
@ -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 @@ swwdog_detach(device_t self, int flags)
|
||||
{
|
||||
struct swwdog_softc *sc = device_private(self);
|
||||
|
||||
pmf_device_deregister(self);
|
||||
swwdog_disarm(sc);
|
||||
callout_destroy(&sc->sc_c);
|
||||
sysctl_teardown(&swwdog_sysctllog);
|
||||
|
Loading…
Reference in New Issue
Block a user