summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2004-04-18 20:19:53 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2004-04-18 20:19:53 +0000
commit62fe5376c52729f06143fec37a676f10754d7638 (patch)
tree6d4a436c1e9cfc50ca00a954f617cd59fafb3751 /sys/arch
parent2b798f1ef1b730d89acf02f90c23e7e7bba945ff (diff)
... and do not pass a NULL map to uvm_fault() either.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/mvme68k/mvme68k/trap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/mvme68k/mvme68k/trap.c b/sys/arch/mvme68k/mvme68k/trap.c
index 50b358f472f..6a970019eb1 100644
--- a/sys/arch/mvme68k/mvme68k/trap.c
+++ b/sys/arch/mvme68k/mvme68k/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.53 2004/04/18 20:02:08 miod Exp $ */
+/* $OpenBSD: trap.c,v 1.54 2004/04/18 20:19:52 miod Exp $ */
/*
* Copyright (c) 1995 Theo de Raadt
@@ -555,7 +555,7 @@ copyfault:
((p && !p->p_addr->u_pcb.pcb_onfault) || KDFAULT(code)))
map = kernel_map;
else
- map = &vm->vm_map;
+ map = vm ? &vm->vm_map : kernel_map;
if (WRFAULT(code)) {
vftype = VM_PROT_WRITE;
ftype = VM_PROT_READ | VM_PROT_WRITE;