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

PR:		18350
This commit is contained in:
alc 2001-12-31 03:13:24 +00:00
parent 381abbe3ca
commit 376aa3a76e

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;