diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c index 99be494f330..4030a2ddc90 100644 --- a/sys/dev/md/md.c +++ b/sys/dev/md/md.c @@ -1320,8 +1320,8 @@ mdcreate_swap(struct md_s *sc, struct md_ioctl *mdio, struct thread *td) int error; /* - * Range check. Disallow negative sizes or any size less then the - * size of a page. Then round to a page. + * Range check. Disallow negative sizes and sizes not being + * multiple of page size. */ if (sc->mediasize <= 0 || (sc->mediasize % PAGE_SIZE) != 0) return (EDOM); @@ -1362,8 +1362,8 @@ mdcreate_null(struct md_s *sc, struct md_ioctl *mdio, struct thread *td) { /* - * Range check. Disallow negative sizes or any size less then the - * size of a page. Then round to a page. + * Range check. Disallow negative sizes and sizes not being + * multiple of page size. */ if (sc->mediasize <= 0 || (sc->mediasize % PAGE_SIZE) != 0) return (EDOM);