summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2015-02-09 09:32:54 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2015-02-09 09:32:54 +0000
commitff9b0a9233113ee5f492faf397c0416cc25a2615 (patch)
tree6574cacbccd447277164219308a72a84371067e7 /sys
parentf305c01daa597f005f3a5f9884ca482a2d293fb0 (diff)
No need to check for va < USRSTACK before invoking uvm_grow() on behalf of
a userland map.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/sh/sh/trap.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/sh/sh/trap.c b/sys/arch/sh/sh/trap.c
index a2b7a21987e..67e0e0617cc 100644
--- a/sys/arch/sh/sh/trap.c
+++ b/sys/arch/sh/sh/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.32 2014/11/16 12:30:58 deraadt Exp $ */
+/* $OpenBSD: trap.c,v 1.33 2015/02/09 09:32:53 miod Exp $ */
/* $NetBSD: exception.c,v 1.32 2006/09/04 23:57:52 uwe Exp $ */
/* $NetBSD: syscall.c,v 1.6 2006/03/07 07:21:50 thorpej Exp $ */
@@ -416,8 +416,7 @@ tlb_exception(struct proc *p, struct trapframe *tf, uint32_t va)
/* User stack extension */
if (map != kernel_map &&
- (va >= (vaddr_t)p->p_vmspace->vm_maxsaddr) &&
- (va < USRSTACK)) {
+ va >= (vaddr_t)p->p_vmspace->vm_maxsaddr) {
if (err == 0)
uvm_grow(p, va);
else if (err == EACCES)