Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/sunxi Fix previous brainfart.
details: https://anonhg.NetBSD.org/src/rev/8ce0abc68b1c
branches: trunk
changeset: 744572:8ce0abc68b1c
user: riastradh <riastradh%NetBSD.org@localhost>
date: Thu Feb 06 19:52:09 2020 +0000
description:
Fix previous brainfart.
Don't use the uninitialized trng node as the root node -- derp.
Instead, use the root node as the root node, and initialize the trng
node here.
diffstat:
sys/arch/arm/sunxi/sun8i_crypto.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 79b6bff976f2 -r 8ce0abc68b1c sys/arch/arm/sunxi/sun8i_crypto.c
--- a/sys/arch/arm/sunxi/sun8i_crypto.c Thu Feb 06 19:51:59 2020 +0000
+++ b/sys/arch/arm/sunxi/sun8i_crypto.c Thu Feb 06 19:52:09 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sun8i_crypto.c,v 1.11 2020/01/20 16:29:38 riastradh Exp $ */
+/* $NetBSD: sun8i_crypto.c,v 1.12 2020/02/06 19:52:09 riastradh Exp $ */
/*-
* Copyright (c) 2019 The NetBSD Foundation, Inc.
@@ -43,7 +43,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: sun8i_crypto.c,v 1.11 2020/01/20 16:29:38 riastradh Exp $");
+__KERNEL_RCSID(1, "$NetBSD: sun8i_crypto.c,v 1.12 2020/02/06 19:52:09 riastradh Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -1177,7 +1177,7 @@
}
/* hw.sun8icryptoN.rng (`struct', 4096-byte array) */
- sysctl_createv(&cy->cy_log, 0, &cy->cy_trng_node, NULL,
+ sysctl_createv(&cy->cy_log, 0, &cy->cy_root_node, &cy->cy_trng_node,
CTLFLAG_PERMANENT|CTLFLAG_READONLY|CTLFLAG_PRIVATE, CTLTYPE_STRUCT,
"rng", SYSCTL_DESCR("Read up to 4096 bytes out of the TRNG"),
&sun8i_crypto_sysctl_rng, 0, sc, 0, CTL_CREATE, CTL_EOL);
Home |
Main Index |
Thread Index |
Old Index