mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-19 10:53:58 +00:00
Fix off-by-one error in check against max_threads_per_proc.
Submitted by: arundel MFC after: 1 week
This commit is contained in:
parent
65d8409cee
commit
329b4acb91
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=218967
@ -153,7 +153,7 @@ create_thread(struct thread *td, mcontext_t *ctx,
|
||||
p = td->td_proc;
|
||||
|
||||
/* Have race condition but it is cheap. */
|
||||
if (p->p_numthreads >= max_threads_per_proc) {
|
||||
if (p->p_numthreads > max_threads_per_proc) {
|
||||
++max_threads_hits;
|
||||
return (EPROCLIM);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user