diff options
-rw-r--r-- | sys/arch/mvme68k/mvme68k/trap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/mvme68k/mvme68k/trap.c b/sys/arch/mvme68k/mvme68k/trap.c index a30ef9bdf48..50b358f472f 100644 --- a/sys/arch/mvme68k/mvme68k/trap.c +++ b/sys/arch/mvme68k/mvme68k/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.52 2004/01/15 17:22:27 miod Exp $ */ +/* $OpenBSD: trap.c,v 1.53 2004/04/18 20:02:08 miod Exp $ */ /* * Copyright (c) 1995 Theo de Raadt @@ -593,7 +593,8 @@ copyfault: * the current limit and we need to reflect that as an access * error. */ - if ((caddr_t)va >= vm->vm_maxsaddr && map != kernel_map) { + if ((vm != NULL && (caddr_t)va >= vm->vm_maxsaddr) + && map != kernel_map) { if (rv == 0) { u_int nss; |