diff options
author | Tom Cosgrove <tom@cvs.openbsd.org> | 2007-06-26 13:39:03 +0000 |
---|---|---|
committer | Tom Cosgrove <tom@cvs.openbsd.org> | 2007-06-26 13:39:03 +0000 |
commit | 51f633a6f11bec22789ba2ac93d7618cd55a8f82 (patch) | |
tree | 16361c9938e0b7fcffa7606efdcf209c1762ef45 | |
parent | 4b41f65689d5d92e42d673eed28dda7ac4b3b1cd (diff) |
Provide a default case so that we don't end up trying to dereference
vframe when it hasn't been set.
Prompted by a diff from mickey@
ok art@
-rw-r--r-- | sys/arch/i386/i386/trap.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/i386/i386/trap.c b/sys/arch/i386/i386/trap.c index 0b5cd237baa..26f1b20fd9b 100644 --- a/sys/arch/i386/i386/trap.c +++ b/sys/arch/i386/i386/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.84 2007/05/29 18:47:51 tom Exp $ */ +/* $OpenBSD: trap.c,v 1.85 2007/06/26 13:39:02 tom Exp $ */ /* $NetBSD: trap.c,v 1.95 1996/05/05 06:50:02 mycroft Exp $ */ /*- @@ -311,8 +311,10 @@ trap(struct trapframe frame) offsetof(struct trapframe, tf_gs)); resume = (int)resume_pop_gs; break; + default: + goto we_re_toast; } - break; + break; default: goto we_re_toast; } |