summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1997-01-18 12:42:03 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1997-01-18 12:42:03 +0000
commit4894bee5aacc9d932af6d3dffb479fb48735e103 (patch)
treea6e290a52000e7501d5960f3856d4615c1475473 /sys
parentac01d93bba320c08b56f72984ca94e52daf50822 (diff)
Avoid a double trap
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/amiga/amiga/trap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amiga/amiga/trap.c b/sys/arch/amiga/amiga/trap.c
index 48ede72e45d..cec9a854951 100644
--- a/sys/arch/amiga/amiga/trap.c
+++ b/sys/arch/amiga/amiga/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.8 1997/01/16 09:23:30 niklas Exp $ */
+/* $OpenBSD: trap.c,v 1.9 1997/01/18 12:42:02 niklas Exp $ */
/* $NetBSD: trap.c,v 1.52 1996/11/13 06:22:20 thorpej Exp $ */
/*
@@ -498,7 +498,7 @@ trapmmufault(type, code, v, fp, p, sticks)
nogo:
#endif
if (type == T_MMUFLT) {
- if (p && p->p_addr->u_pcb.pcb_onfault) {
+ if (p && p->p_addr && p->p_addr->u_pcb.pcb_onfault) {
trapcpfault(p, fp);
return;
}