o Correct an off-by-one error in aio_suspend(2).

PR:		18350
This commit is contained in:
Alan Cox 2001-12-31 03:13:24 +00:00
parent 516d256401
commit 5ca50a4bc9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=88730

View file

@ -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;