aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/vfs_aio.c
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>2002-08-11 19:04:17 +0000
committerAlan Cox <alc@FreeBSD.org>2002-08-11 19:04:17 +0000
commitad49abc087d3a0d6eb44e2bf1b27cf3e42e20522 (patch)
tree9129612986baa561191938046324e61228f300b7 /sys/kern/vfs_aio.c
parentaf338bea6461ad28a5ff96a9558bc051fc7c2ade (diff)
Notes
Diffstat (limited to 'sys/kern/vfs_aio.c')
-rw-r--r--sys/kern/vfs_aio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c
index d296acad4940e..eaaff0f8fa6bb 100644
--- a/sys/kern/vfs_aio.c
+++ b/sys/kern/vfs_aio.c
@@ -1776,7 +1776,7 @@ aio_cancel(struct thread *td, struct aio_cancel_args *uap)
}
ki=p->p_aioinfo;
if (ki == NULL)
- return (EINVAL);
+ goto done;
s = splnet();
for (cbe = TAILQ_FIRST(&ki->kaio_jobqueue); cbe; cbe = cbn) {
@@ -1809,7 +1809,7 @@ aio_cancel(struct thread *td, struct aio_cancel_args *uap)
}
}
splx(s);
-
+done:
if (notcancelled) {
td->td_retval[0] = AIO_NOTCANCELED;
return 0;