o Correct an off-by-one error in aio_suspend(2).
PR: 18350
This commit is contained in:
parent
381abbe3ca
commit
376aa3a76e
@ -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 New Issue
Block a user