diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c index b2722dca1867..0ec14b83be0d 100644 --- a/sys/kern/vfs_aio.c +++ b/sys/kern/vfs_aio.c @@ -1117,6 +1117,9 @@ aio_qphysio(struct proc *p, struct aiocblist *aiocbe) return (error); } + if (vp->v_bufobj.bo_bsize == 0) + return (-1); + if (cb->aio_nbytes % vp->v_bufobj.bo_bsize) return (-1);