From a24b5eb7b0255903c7de181dc43704068e3fefbd Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Wed, 8 Jun 2016 01:00:19 +0000 Subject: reporting a different issue, bluhm noticed that valid is not initialized. --- sys/arch/amd64/amd64/cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/amd64') 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( -- cgit v1.2.3