summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/arch/i386/i386/trap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/i386/i386/trap.c b/sys/arch/i386/i386/trap.c
index 9444e32f3ef..3e9d4d4be43 100644
--- a/sys/arch/i386/i386/trap.c
+++ b/sys/arch/i386/i386/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.26 1998/02/22 21:35:28 niklas Exp $ */
+/* $OpenBSD: trap.c,v 1.27 1998/08/20 19:46:35 deraadt Exp $ */
/* $NetBSD: trap.c,v 1.95 1996/05/05 06:50:02 mycroft Exp $ */
#undef DEBUG
@@ -390,6 +390,8 @@ trap(frame)
extern vm_map_t kernel_map;
unsigned nss, v;
+ if (vm == NULL)
+ goto we_re_toast;
va = trunc_page((vm_offset_t)rcr2());
/*
* It is only a kernel address space fault iff: