aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/vfs_aio.c
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>2001-12-31 03:13:24 +0000
committerAlan Cox <alc@FreeBSD.org>2001-12-31 03:13:24 +0000
commit5ca50a4bc988425fcf5b57bb280736ce3e3becb0 (patch)
tree83171615a036c0ff7479efaeea651b041c69d272 /sys/kern/vfs_aio.c
parent516d256401ab4ce2e8ef04b995b1c4571e23bde0 (diff)
downloadsrc-5ca50a4bc988425fcf5b57bb280736ce3e3becb0.tar.gz
src-5ca50a4bc988425fcf5b57bb280736ce3e3becb0.zip
o Correct an off-by-one error in aio_suspend(2).
PR: 18350
Notes
Notes: svn path=/head/; revision=88730
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 21ce2bb40b19..7aa57f975c42 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;