diff options
| author | riastradh <riastradh@NetBSD.org> | 2014-07-02 18:58:42 +0000 |
|---|---|---|
| committer | riastradh <riastradh@NetBSD.org> | 2014-07-02 18:58:42 +0000 |
| commit | 982e4658bb56aa3f758370f4fdb419aa9ef11fa6 (patch) | |
| tree | 8a1527fcd369287e1f4e7a0798e48faccf81178e /sys/opencrypto/cryptosoft.c | |
| parent | 82a5a2fbf43ea432e1f8e647a28bd61d521826b3 (diff) | |
If we register with pmf on attach, deregister on detach.
Diffstat (limited to 'sys/opencrypto/cryptosoft.c')
| -rw-r--r-- | sys/opencrypto/cryptosoft.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/opencrypto/cryptosoft.c b/sys/opencrypto/cryptosoft.c index e009c893f1c..6d1408ce56e 100644 --- a/sys/opencrypto/cryptosoft.c +++ b/sys/opencrypto/cryptosoft.c @@ -1,4 +1,4 @@ -/* $NetBSD: cryptosoft.c,v 1.45 2014/06/21 17:34:30 christos Exp $ */ +/* $NetBSD: cryptosoft.c,v 1.46 2014/07/02 18:58:42 riastradh Exp $ */ /* $FreeBSD: src/sys/opencrypto/cryptosoft.c,v 1.2.2.1 2002/11/21 23:34:23 sam Exp $ */ /* $OpenBSD: cryptosoft.c,v 1.35 2002/04/26 08:43:50 deraadt Exp $ */ @@ -24,7 +24,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: cryptosoft.c,v 1.45 2014/06/21 17:34:30 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: cryptosoft.c,v 1.46 2014/07/02 18:58:42 riastradh Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -1343,6 +1343,7 @@ int swcrypto_detach(device_t, int); int swcrypto_detach(device_t self, int flag) { + pmf_device_deregister(self); if (swcr_id >= 0) crypto_unregister_all(swcr_id); return 0; |
