artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d375faf
)
in kdata_abort, error must be initialized to 0 (like arm64)
author
deraadt
<deraadt@openbsd.org>
Sat, 15 May 2021 20:20:35 +0000
(20:20 +0000)
committer
deraadt
<deraadt@openbsd.org>
Sat, 15 May 2021 20:20:35 +0000
(20:20 +0000)
spotted by drahn
sys/arch/riscv64/riscv64/trap.c
patch
|
blob
|
history
diff --git
a/sys/arch/riscv64/riscv64/trap.c
b/sys/arch/riscv64/riscv64/trap.c
index
5ce5381
..
9845eed
100644
(file)
--- a/
sys/arch/riscv64/riscv64/trap.c
+++ b/
sys/arch/riscv64/riscv64/trap.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: trap.c,v 1.1
1 2021/05/15 20:12:24
deraadt Exp $ */
+/* $OpenBSD: trap.c,v 1.1
2 2021/05/15 20:20:35
deraadt Exp $ */
/*
* Copyright (c) 2020 Shivam Waghela <shivamwaghela@gmail.com>
@@
-275,7
+275,7
@@
kdata_abort(struct trapframe *frame)
vm_prot_t access_type = accesstype(frame);
vaddr_t va;
struct proc *p;
- int error;
+ int error
= 0
;
pcb = curcpu()->ci_curpcb;
p = curcpu()->ci_curproc;