Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/opencrypto Disable unloading until we keep track of refe...



details:   https://anonhg.NetBSD.org/src/rev/983d34e5cc2d
branches:  trunk
changeset: 1000170:983d34e5cc2d
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Jul 11 23:27:24 2019 +0000

description:
Disable unloading until we keep track of references

diffstat:

 sys/opencrypto/cryptosoft.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (37 lines):

diff -r e31c0f9854af -r 983d34e5cc2d sys/opencrypto/cryptosoft.c
--- a/sys/opencrypto/cryptosoft.c       Thu Jul 11 18:22:14 2019 +0000
+++ b/sys/opencrypto/cryptosoft.c       Thu Jul 11 23:27:24 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cryptosoft.c,v 1.52 2017/06/23 11:41:58 knakahara Exp $ */
+/*     $NetBSD: cryptosoft.c,v 1.53 2019/07/11 23:27:24 christos 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.52 2017/06/23 11:41:58 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cryptosoft.c,v 1.53 2019/07/11 23:27:24 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1447,6 +1447,10 @@
 #endif
                return error;
        case MODULE_CMD_FINI:
+#if 1
+               // XXX: Need to keep track if we are in use.
+               return ENOTTY;
+#else
                error = config_cfdata_detach(swcrypto_cfdata);
                if (error) {
                        return error;
@@ -1456,6 +1460,7 @@
                config_cfdriver_detach(&swcrypto_cd);
 
                return 0;
+#endif
        default:
                return ENOTTY;
        }



Home | Main Index | Thread Index | Old Index