From 4687eb5aa56ad049323bc0289591eaf27fcf09ec Mon Sep 17 00:00:00 2001 From: alc Date: Mon, 31 Dec 2001 03:13:24 +0000 Subject: o Correct an off-by-one error in aio_suspend(2). PR: 18350 --- sys/kern/vfs_aio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/kern/vfs_aio.c') diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c index 21ce2bb..7aa57f9 100644 --- a/sys/kern/vfs_aio.c +++ b/sys/kern/vfs_aio.c @@ -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; -- cgit v1.1