diff options
author | 2017-09-16 05:04:34 +0000 | |
---|---|---|
committer | 2017-09-16 05:04:34 +0000 | |
commit | cf27e011a468ef3cf51334d806eef973574930ce (patch) | |
tree | 5b40a8c9fc043a8b601eaf0f072460dcb841c054 | |
parent | The copyin(9) family of functions should return EFAULT for all memory (diff) | |
download | wireguard-openbsd-cf27e011a468ef3cf51334d806eef973574930ce.tar.xz wireguard-openbsd-cf27e011a468ef3cf51334d806eef973574930ce.zip |
Make sure that `fsr' is always initialized. Non-DEBUG kernels
have not been affected.
From miod@
-rw-r--r-- | sys/arch/mips64/mips64/fp_emulate.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/mips64/mips64/fp_emulate.c b/sys/arch/mips64/mips64/fp_emulate.c index 0c131afa365..8d1bc8eebfc 100644 --- a/sys/arch/mips64/mips64/fp_emulate.c +++ b/sys/arch/mips64/mips64/fp_emulate.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fp_emulate.c,v 1.18 2017/09/02 15:56:29 visa Exp $ */ +/* $OpenBSD: fp_emulate.c,v 1.19 2017/09/16 05:04:34 visa Exp $ */ /* * Copyright (c) 2010 Miodrag Vallat. @@ -178,6 +178,7 @@ MipsFPTrap(struct trapframe *tf) */ tf->sr |= SR_FR_32; #endif + fsr = tf->fsr; } /* |