mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 09:11:07 -04:00
Change comment to match code.
Discussed with: thompsa Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
a3478d8cfd
commit
bc2308d49e
1 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue