summaryrefslogtreecommitdiff
path: root/sys/arch/m88k
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2015-02-10 10:15:31 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2015-02-10 10:15:31 +0000
commit6ebba4debac7e9c3db2627ec7bc17e8ab289f04c (patch)
treed01b10b6449af825e535590c05e9921fd5598504 /sys/arch/m88k
parentf95f7e1fcba115d4bd0fa514cc49f4a4acf60c98 (diff)
Enable `va < VM_MIN_ADDRESS' check now that VM_MIN_ADDRESS is nonzero.
Diffstat (limited to 'sys/arch/m88k')
-rw-r--r--sys/arch/m88k/m88k/trap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/m88k/m88k/trap.c b/sys/arch/m88k/m88k/trap.c
index 89d28383218..8099bbeaeb4 100644
--- a/sys/arch/m88k/m88k/trap.c
+++ b/sys/arch/m88k/m88k/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.101 2014/11/16 12:30:58 deraadt Exp $ */
+/* $OpenBSD: trap.c,v 1.102 2015/02/10 10:15:30 miod Exp $ */
/*
* Copyright (c) 2004, Miodrag Vallat.
* Copyright (c) 1998 Steve Murphree, Jr.
@@ -1757,7 +1757,7 @@ cache_flush(struct trapframe *tf)
va = tf->tf_r[2];
len = tf->tf_r[3];
- if (/* va < VM_MIN_ADDRESS || */ va >= VM_MAXUSER_ADDRESS ||
+ if (va < VM_MIN_ADDRESS || va >= VM_MAXUSER_ADDRESS ||
va + len <= va || va + len >= VM_MAXUSER_ADDRESS)
len = 0;