Release sched_lock before calling upcall_free.
This commit is contained in:
parent
f3194000cb
commit
3b3df40fc4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=111595
@ -688,8 +688,8 @@ kse_create(struct thread *td, struct kse_create_args *uap)
|
|||||||
|
|
||||||
mtx_lock_spin(&sched_lock);
|
mtx_lock_spin(&sched_lock);
|
||||||
if (newkg->kg_numupcalls >= ncpus) {
|
if (newkg->kg_numupcalls >= ncpus) {
|
||||||
upcall_free(newku);
|
|
||||||
mtx_unlock_spin(&sched_lock);
|
mtx_unlock_spin(&sched_lock);
|
||||||
|
upcall_free(newku);
|
||||||
return (EPROCLIM);
|
return (EPROCLIM);
|
||||||
}
|
}
|
||||||
upcall_link(newku, newkg);
|
upcall_link(newku, newkg);
|
||||||
|
@ -688,8 +688,8 @@ kse_create(struct thread *td, struct kse_create_args *uap)
|
|||||||
|
|
||||||
mtx_lock_spin(&sched_lock);
|
mtx_lock_spin(&sched_lock);
|
||||||
if (newkg->kg_numupcalls >= ncpus) {
|
if (newkg->kg_numupcalls >= ncpus) {
|
||||||
upcall_free(newku);
|
|
||||||
mtx_unlock_spin(&sched_lock);
|
mtx_unlock_spin(&sched_lock);
|
||||||
|
upcall_free(newku);
|
||||||
return (EPROCLIM);
|
return (EPROCLIM);
|
||||||
}
|
}
|
||||||
upcall_link(newku, newkg);
|
upcall_link(newku, newkg);
|
||||||
|
Loading…
Reference in New Issue
Block a user