Module Name: src Committed By: riastradh Date: Mon Jan 20 16:29:38 UTC 2020
Modified Files: src/sys/arch/arm/sunxi: sun8i_crypto.c Log Message: Fix (presently harmless) psato. Don't overwrite cy_root_node; use cy_trng_node as intended. To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/sys/arch/arm/sunxi/sun8i_crypto.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/arm/sunxi/sun8i_crypto.c diff -u src/sys/arch/arm/sunxi/sun8i_crypto.c:1.10 src/sys/arch/arm/sunxi/sun8i_crypto.c:1.11 --- src/sys/arch/arm/sunxi/sun8i_crypto.c:1.10 Sun Jan 12 21:52:36 2020 +++ src/sys/arch/arm/sunxi/sun8i_crypto.c Mon Jan 20 16:29:38 2020 @@ -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 @@ sun8i_crypto_sysctl_attach(struct sun8i_ } /* 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);