summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorArchie Cobbs <archie@FreeBSD.org>2002-08-22 21:24:01 +0000
committerArchie Cobbs <archie@FreeBSD.org>2002-08-22 21:24:01 +0000
commit4a6a94d8d803018858d728dad780253f98583be0 (patch)
tree2fc5ad56a57cb03d56c0aa0af0f4c9ba2c7bb631 /sys/kern
parentb87a69181edd9027bb62760f7ba1b564ba5451aa (diff)
Notes
Diffstat (limited to 'sys/kern')
-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 39ec50e904c5..b3a267073feb 100644
--- a/sys/kern/vfs_aio.c
+++ b/sys/kern/vfs_aio.c
@@ -1979,7 +1979,7 @@ lio_listio(struct thread *td, struct lio_listio_args *uap)
cbptr = uap->acb_list;
for (i = 0; i < uap->nent; i++) {
iocb = (struct aiocb *)(intptr_t)fuword(&cbptr[i]);
- if (((intptr_t)iocb != -1) && ((intptr_t)iocb != NULL)) {
+ if (((intptr_t)iocb != -1) && ((intptr_t)iocb != 0)) {
error = _aio_aqueue(td, iocb, lj, 0);
if (error == 0)
nentqueued++;