diff options
| -rw-r--r-- | sys/kern/vfs_aio.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c index c46dd1399db8..d296acad4940 100644 --- a/sys/kern/vfs_aio.c +++ b/sys/kern/vfs_aio.c @@ -1775,6 +1775,8 @@ aio_cancel(struct thread *td, struct aio_cancel_args *uap) } } ki=p->p_aioinfo; + if (ki == NULL) + return (EINVAL); s = splnet(); for (cbe = TAILQ_FIRST(&ki->kaio_jobqueue); cbe; cbe = cbn) { |
