summaryrefslogtreecommitdiff
path: root/sys/kern/vfs_aio.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2006-01-06 16:34:22 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2006-01-06 16:34:22 +0000
commitaf56abaab52cbfc41b957c4e3100ffbed7a128a3 (patch)
tree7df3112906e6324fb2f9c0f05b946e9ebda5f551 /sys/kern/vfs_aio.c
parent38f63f7e47372686ec51506514ac2278884d3b9c (diff)
Notes
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 3ead26f3750e..5466959c03bc 100644
--- a/sys/kern/vfs_aio.c
+++ b/sys/kern/vfs_aio.c
@@ -1447,7 +1447,7 @@ _aio_aqueue(struct thread *td, struct aiocb *job, struct aio_liojob *lj,
uma_zfree(aiocb_zone, aiocbe);
if (type == 0)
suword(&job->_aiocb_private.error, EBADF);
- return (EBADF);
+ return (error);
}
aiocbe->fd_file = fp;