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 (presently harmless) psato.



details:   https://anonhg.NetBSD.org/src/rev/3e7fe1e49199
branches:  trunk
changeset: 968559:3e7fe1e49199
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Jan 20 16:29:38 2020 +0000

description:
Fix (presently harmless) psato.

Don't overwrite cy_root_node; use cy_trng_node as intended.

diffstat:

 sys/arch/arm/sunxi/sun8i_crypto.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r c096322e25c3 -r 3e7fe1e49199 sys/arch/arm/sunxi/sun8i_crypto.c
--- a/sys/arch/arm/sunxi/sun8i_crypto.c Mon Jan 20 13:08:40 2020 +0000
+++ b/sys/arch/arm/sunxi/sun8i_crypto.c Mon Jan 20 16:29:38 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sun8i_crypto.c,v 1.10 2020/01/12 21:52:36 riastradh Exp $      */
+/*     $NetBSD: sun8i_crypto.c,v 1.11 2020/01/20 16:29:38 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.10 2020/01/12 21:52:36 riastradh Exp $");
+__KERNEL_RCSID(1, "$NetBSD: sun8i_crypto.c,v 1.11 2020/01/20 16:29:38 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_root_node, NULL,
+       sysctl_createv(&cy->cy_log, 0, &cy->cy_trng_node, NULL,
            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