summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_aio.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2002-04-07 01:28:34 +0000
committeralc <alc@FreeBSD.org>2002-04-07 01:28:34 +0000
commit2f8880db133d360f3ff41db9fa0d2e27ccb1c777 (patch)
treeee606391c8848a0c8e8ad00a2d0e0396aceb0df2 /sys/kern/vfs_aio.c
parent1787bef03c953feb647434bb2946b724c1c986c7 (diff)
downloadFreeBSD-src-2f8880db133d360f3ff41db9fa0d2e27ccb1c777.zip
FreeBSD-src-2f8880db133d360f3ff41db9fa0d2e27ccb1c777.tar.gz
Change jobref and *ijoblist from int to long in order to avoid
a catastrophe after the 2^32nd AIO operation on 64-bit architectures.
Diffstat (limited to 'sys/kern/vfs_aio.c')
-rw-r--r--sys/kern/vfs_aio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c
index 406bb4c..f22152a 100644
--- a/sys/kern/vfs_aio.c
+++ b/sys/kern/vfs_aio.c
@@ -1594,7 +1594,7 @@ aio_return(struct thread *td, struct aio_return_args *uap)
{
struct proc *p = td->td_proc;
int s;
- int jobref;
+ long jobref;
struct aiocblist *cb, *ncb;
struct aiocb *ujob;
struct kaioinfo *ki;
@@ -1664,7 +1664,7 @@ aio_suspend(struct thread *td, struct aio_suspend_args *uap)
int i;
int njoblist;
int error, s, timo;
- int *ijoblist;
+ long *ijoblist;
struct aiocb **ujoblist;
if (uap->nent > AIO_LISTIO_MAX)
@@ -1890,7 +1890,7 @@ aio_error(struct thread *td, struct aio_error_args *uap)
int s;
struct aiocblist *cb;
struct kaioinfo *ki;
- int jobref;
+ long jobref;
ki = p->p_aioinfo;
if (ki == NULL)
OpenPOWER on IntegriCloud