diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-11-20 21:48:32 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-11-20 21:48:32 +0000 |
commit | 1553658f36cd981f804da2c7b771468c4c4510a4 (patch) | |
tree | 99ed9b09daf91a672567b3cd142b9d9fe41afbc3 | |
parent | e1afd1d926a7d9fd604a0373f9f2510e4c68c6d8 (diff) |
In syscall handlers, fix copyin() failure path wrt locking macros.
-rw-r--r-- | sys/arch/m88k/m88k/trap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/m88k/m88k/trap.c b/sys/arch/m88k/m88k/trap.c index bfa41034793..cf2ae59f5a9 100644 --- a/sys/arch/m88k/m88k/trap.c +++ b/sys/arch/m88k/m88k/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.34 2006/11/10 19:19:50 miod Exp $ */ +/* $OpenBSD: trap.c,v 1.35 2006/11/20 21:48:31 miod Exp $ */ /* * Copyright (c) 2004, Miodrag Vallat. * Copyright (c) 1998 Steve Murphree, Jr. @@ -1178,9 +1178,9 @@ m88100_syscall(register_t code, struct trapframe *tf) error = 0; } - KERNEL_PROC_LOCK(p); if (error != 0) goto bad; + KERNEL_PROC_LOCK(p); #ifdef SYSCALL_DEBUG scdebug_call(p, code, args); #endif @@ -1331,9 +1331,9 @@ m88110_syscall(register_t code, struct trapframe *tf) error = 0; } - KERNEL_PROC_LOCK(p); if (error != 0) goto bad; + KERNEL_PROC_LOCK(p); #ifdef SYSCALL_DEBUG scdebug_call(p, code, args); #endif |