Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/opencrypto swcrypto0 was initialized twice. Fix like pse...
details: https://anonhg.NetBSD.org/src/rev/396fe7a28dc5
branches: trunk
changeset: 354018:396fe7a28dc5
user: knakahara <knakahara%NetBSD.org@localhost>
date: Thu Jun 01 08:49:35 2017 +0000
description:
swcrypto0 was initialized twice. Fix like pseudo network interfaces.
ok by pgoyette@n.o.
diffstat:
sys/opencrypto/cryptosoft.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (31 lines):
diff -r 98e3eb2c9f1a -r 396fe7a28dc5 sys/opencrypto/cryptosoft.c
--- a/sys/opencrypto/cryptosoft.c Thu Jun 01 03:56:47 2017 +0000
+++ b/sys/opencrypto/cryptosoft.c Thu Jun 01 08:49:35 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cryptosoft.c,v 1.50 2017/05/17 06:33:04 knakahara Exp $ */
+/* $NetBSD: cryptosoft.c,v 1.51 2017/06/01 08:49:35 knakahara 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.50 2017/05/17 06:33:04 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cryptosoft.c,v 1.51 2017/06/01 08:49:35 knakahara Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1325,8 +1325,10 @@
void
swcryptoattach(int num)
{
-
- swcr_init();
+ /*
+ * Nothing to do here, initialization is handled by the
+ * module initialization code in swcrypto_attach() below).
+ */
}
void swcrypto_attach(device_t, device_t, void *);
Home |
Main Index |
Thread Index |
Old Index