Source-Changes-HG archive

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

[src/trunk]: src/sys/opencrypto At least crypto_mtx needs initialisation here...



details:   https://anonhg.NetBSD.org/src/rev/7f3541e8da14
branches:  trunk
changeset: 797932:7f3541e8da14
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Aug 04 14:17:18 2014 +0000

description:
At least crypto_mtx needs initialisation here.  Spotted during PR/49065
investigation.

diffstat:

 sys/opencrypto/cryptodev.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r e791a0609dcb -r 7f3541e8da14 sys/opencrypto/cryptodev.c
--- a/sys/opencrypto/cryptodev.c        Mon Aug 04 13:09:42 2014 +0000
+++ b/sys/opencrypto/cryptodev.c        Mon Aug 04 14:17:18 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cryptodev.c,v 1.79 2014/07/25 08:10:40 dholland Exp $ */
+/*     $NetBSD: cryptodev.c,v 1.80 2014/08/04 14:17:18 skrll 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.79 2014/07/25 08:10:40 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cryptodev.c,v 1.80 2014/08/04 14:17:18 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -2085,6 +2085,8 @@
 void
 cryptoattach(int num)
 {
+       crypto_init();
+
        pool_init(&fcrpl, sizeof(struct fcrypt), 0, 0, 0, "fcrpl",
            NULL, IPL_NET);     /* XXX IPL_NET ("splcrypto") */
        pool_init(&csepl, sizeof(struct csession), 0, 0, 0, "csepl",



Home | Main Index | Thread Index | Old Index