Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/opencrypto If we register with pmf on attach, deregister...
details: https://anonhg.NetBSD.org/src/rev/898a4f3d1fbc
branches: trunk
changeset: 797039:898a4f3d1fbc
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jul 02 18:58:42 2014 +0000
description:
If we register with pmf on attach, deregister on detach.
diffstat:
sys/opencrypto/cryptosoft.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 3d053a9c99b5 -r 898a4f3d1fbc sys/opencrypto/cryptosoft.c
--- a/sys/opencrypto/cryptosoft.c Wed Jul 02 15:00:28 2014 +0000
+++ b/sys/opencrypto/cryptosoft.c Wed Jul 02 18:58:42 2014 +0000
@@ -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 self, int flag)
{
+ pmf_device_deregister(self);
if (swcr_id >= 0)
crypto_unregister_all(swcr_id);
return 0;
Home |
Main Index |
Thread Index |
Old Index