diff options
| author | Alan Somers <asomers@FreeBSD.org> | 2017-10-26 19:45:15 +0000 |
|---|---|---|
| committer | Alan Somers <asomers@FreeBSD.org> | 2017-10-26 19:45:15 +0000 |
| commit | df485bdb3ce1e7347de7dac08130926dac10ada4 (patch) | |
| tree | a04b21a8fb2fc7bd2f2ca10506959270b7437b44 /sys | |
| parent | 9a8ce256ed081aaf5a7837929daaf739035d8ad6 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/kern/vfs_aio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c index 2553f9079fe4..33cf46e65e14 100644 --- a/sys/kern/vfs_aio.c +++ b/sys/kern/vfs_aio.c @@ -2814,7 +2814,7 @@ freebsd32_aio_suspend(struct thread *td, struct freebsd32_aio_suspend_args *uap) error = copyin(uap->aiocbp, ujoblist32, uap->nent * sizeof(ujoblist32[0])); if (error == 0) { - for (i = uap->nent; i > 0; i--) + for (i = uap->nent - 1; i >= 0; i--) ujoblist[i] = PTRIN(ujoblist32[i]); error = kern_aio_suspend(td, uap->nent, ujoblist, tsp); |
