diff options
author | davidxu <davidxu@FreeBSD.org> | 2003-02-27 05:42:01 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2003-02-27 05:42:01 +0000 |
commit | b821d0ec30af5761cd0c191ffd6c9c146198688d (patch) | |
tree | 9ff240a05339b1a06cd73261d545725ff6ead3dc /sys/kern/kern_thread.c | |
parent | 1269b76675254ee22c7e0935d89bb251c990cfc0 (diff) | |
download | FreeBSD-src-b821d0ec30af5761cd0c191ffd6c9c146198688d.zip FreeBSD-src-b821d0ec30af5761cd0c191ffd6c9c146198688d.tar.gz |
Release sched_lock before calling upcall_free.
Diffstat (limited to 'sys/kern/kern_thread.c')
-rw-r--r-- | sys/kern/kern_thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c index 2029271..01c1614 100644 --- a/sys/kern/kern_thread.c +++ b/sys/kern/kern_thread.c @@ -688,8 +688,8 @@ kse_create(struct thread *td, struct kse_create_args *uap) mtx_lock_spin(&sched_lock); if (newkg->kg_numupcalls >= ncpus) { - upcall_free(newku); mtx_unlock_spin(&sched_lock); + upcall_free(newku); return (EPROCLIM); } upcall_link(newku, newkg); |