Add missing KERNEL_PROC_UNLOCK() in upcallret(). This should fix PR#22219

and maybe also PR#23731, which appears to be a duplicate of 22219.
This commit is contained in:
mhitch 2004-05-17 17:43:08 +00:00
parent d8c488d1ef
commit 1f358dcd03
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: trap.c,v 1.92 2004/03/23 18:44:00 matt Exp $ */
/* $NetBSD: trap.c,v 1.93 2004/05/17 17:43:08 mhitch Exp $ */
/*-
* Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
@ -100,7 +100,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.92 2004/03/23 18:44:00 matt Exp $");
__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.93 2004/05/17 17:43:08 mhitch Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -1263,6 +1263,7 @@ startlwp(arg)
void
upcallret(struct lwp *l)
{
KERNEL_PROC_UNLOCK(l);
userret(l);
}