summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authorpho <pho@FreeBSD.org>2014-05-21 09:19:05 +0000
committerpho <pho@FreeBSD.org>2014-05-21 09:19:05 +0000
commita3e5dd54218220800b740d399b6d5d4ca6b5ba9d (patch)
treec5913ad5a7cb10a82cc2005a0bdf9a1bb05214a0 /sys/vm
parente7674196624a5c08234cab5ad5bee5b5ba9c1655 (diff)
downloadFreeBSD-src-a3e5dd54218220800b740d399b6d5d4ca6b5ba9d.zip
FreeBSD-src-a3e5dd54218220800b740d399b6d5d4ca6b5ba9d.tar.gz
MFC r265534:
msync(2) must return ENOMEM and not EINVAL when the address is outside the allowed range or when one or more pages are not mapped. This according to The Open Group Base Specifications Issue 7. Sponsored by: EMC / Isilon storage division
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vm_mmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_mmap.c b/sys/vm/vm_mmap.c
index 17f8cad..76479d9 100644
--- a/sys/vm/vm_mmap.c
+++ b/sys/vm/vm_mmap.c
@@ -556,7 +556,7 @@ sys_msync(td, uap)
case KERN_SUCCESS:
return (0);
case KERN_INVALID_ADDRESS:
- return (EINVAL); /* Sun returns ENOMEM? */
+ return (ENOMEM);
case KERN_INVALID_ARGUMENT:
return (EBUSY);
case KERN_FAILURE:
OpenPOWER on IntegriCloud