summaryrefslogtreecommitdiff
path: root/sys/arch/mips64
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2020-10-21 17:54:34 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2020-10-21 17:54:34 +0000
commit968fd9cb2169ef30e36a024267f070a5ccf05e38 (patch)
treea817627e0f29b469b8b0723bbd222a24b612526a /sys/arch/mips64
parentf95e1b7ca967a2fe568b0987ee4d1eefaa06eeaa (diff)
uvm_grow() now does the vm_maxsaddr check (before locking), so callers don't
need to do it ok kettenis
Diffstat (limited to 'sys/arch/mips64')
-rw-r--r--sys/arch/mips64/mips64/trap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/mips64/mips64/trap.c b/sys/arch/mips64/mips64/trap.c
index 1e4476b6888..0f28ee334e9 100644
--- a/sys/arch/mips64/mips64/trap.c
+++ b/sys/arch/mips64/mips64/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.150 2020/10/20 15:21:44 visa Exp $ */
+/* $OpenBSD: trap.c,v 1.151 2020/10/21 17:54:33 deraadt Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -433,7 +433,7 @@ fault_common_no_miss:
* the current limit and we need to reflect that as an access
* error.
*/
- if (rv == 0 && (caddr_t)va >= vm->vm_maxsaddr)
+ if (rv == 0)
uvm_grow(p, va);
KERNEL_UNLOCK();