summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2016-06-08 01:00:19 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2016-06-08 01:00:19 +0000
commita24b5eb7b0255903c7de181dc43704068e3fefbd (patch)
treed30bfe880479643f3936d309d24c1f3fa50d96c3 /sys/arch/amd64
parentf3c558355efc6847f0e90862a62daac7f63a8c97 (diff)
reporting a different issue, bluhm noticed that valid is not initialized.
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r--sys/arch/amd64/amd64/cpu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amd64/amd64/cpu.c b/sys/arch/amd64/amd64/cpu.c
index 0cad54c30f6..92a548d84dc 100644
--- a/sys/arch/amd64/amd64/cpu.c
+++ b/sys/arch/amd64/amd64/cpu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.c,v 1.99 2016/05/30 17:52:26 tedu Exp $ */
+/* $OpenBSD: cpu.c,v 1.100 2016/06/08 01:00:18 tedu Exp $ */
/* $NetBSD: cpu.c,v 1.1 2003/04/26 18:39:26 fvdl Exp $ */
/*-
@@ -880,7 +880,7 @@ rdrand(void *v)
uint64_t u64;
uint32_t u32[2];
} r, t;
- uint8_t valid;
+ uint8_t valid = 0;
if (has_rdseed)
__asm volatile(