summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_aio.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2001-12-31 03:13:24 +0000
committeralc <alc@FreeBSD.org>2001-12-31 03:13:24 +0000
commit4687eb5aa56ad049323bc0289591eaf27fcf09ec (patch)
tree83171615a036c0ff7479efaeea651b041c69d272 /sys/kern/vfs_aio.c
parent0fe9459a662dfffbb0ae4b7156df29ca2c264567 (diff)
downloadFreeBSD-src-4687eb5aa56ad049323bc0289591eaf27fcf09ec.zip
FreeBSD-src-4687eb5aa56ad049323bc0289591eaf27fcf09ec.tar.gz
o Correct an off-by-one error in aio_suspend(2).
PR: 18350
Diffstat (limited to 'sys/kern/vfs_aio.c')
-rw-r--r--sys/kern/vfs_aio.c2
1 files changed, 1 insertions, 1 deletions
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;
OpenPOWER on IntegriCloud