mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-21 07:45:07 +00:00
o Correct an off-by-one error in aio_suspend(2).
PR: 18350
This commit is contained in:
parent
516d256401
commit
5ca50a4bc9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=88730
|
@ -1625,7 +1625,7 @@ aio_suspend(struct thread *td, struct aio_suspend_args *uap)
|
|||
int *ijoblist;
|
||||
struct aiocb **ujoblist;
|
||||
|
||||
if (uap->nent >= AIO_LISTIO_MAX)
|
||||
if (uap->nent > AIO_LISTIO_MAX)
|
||||
return EINVAL;
|
||||
|
||||
timo = 0;
|
||||
|
|
Loading…
Reference in a new issue