Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/opencrypto bail out unloading for now
details: https://anonhg.NetBSD.org/src/rev/1accf9323bda
branches: trunk
changeset: 326126:1accf9323bda
user: christos <christos%NetBSD.org@localhost>
date: Sun Jan 19 18:16:13 2014 +0000
description:
bail out unloading for now
diffstat:
sys/opencrypto/cryptodev.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (37 lines):
diff -r bae1c03e335b -r 1accf9323bda sys/opencrypto/cryptodev.c
--- a/sys/opencrypto/cryptodev.c Sun Jan 19 14:30:37 2014 +0000
+++ b/sys/opencrypto/cryptodev.c Sun Jan 19 18:16:13 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cryptodev.c,v 1.71 2014/01/04 21:42:42 pgoyette Exp $ */
+/* $NetBSD: cryptodev.c,v 1.72 2014/01/19 18:16:13 christos Exp $ */
/* $FreeBSD: src/sys/opencrypto/cryptodev.c,v 1.4.2.4 2003/06/03 00:09:02 sam Exp $ */
/* $OpenBSD: cryptodev.c,v 1.53 2002/07/10 22:21:30 mickey Exp $ */
@@ -64,7 +64,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cryptodev.c,v 1.71 2014/01/04 21:42:42 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cryptodev.c,v 1.72 2014/01/19 18:16:13 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -2205,6 +2205,8 @@
return error;
case MODULE_CMD_FINI:
#ifdef _MODULE
+#ifdef notyet
+ /* We need to keep track of open instances before we do this */
error = config_cfdata_detach(crypto_cfdata);
if (error) {
return error;
@@ -2213,6 +2215,9 @@
config_cfattach_detach(crypto_cd.cd_name, &crypto_ca);
config_cfdriver_detach(&crypto_cd);
devsw_detach(NULL, &crypto_cdevsw);
+#else
+ return EOPNOTSUPP;
+#endif
#endif
return error;
Home |
Main Index |
Thread Index |
Old Index