diff options
author | pho <pho@FreeBSD.org> | 2014-05-21 09:19:05 +0000 |
---|---|---|
committer | pho <pho@FreeBSD.org> | 2014-05-21 09:19:05 +0000 |
commit | a3e5dd54218220800b740d399b6d5d4ca6b5ba9d (patch) | |
tree | c5913ad5a7cb10a82cc2005a0bdf9a1bb05214a0 /sys/vm | |
parent | e7674196624a5c08234cab5ad5bee5b5ba9c1655 (diff) | |
download | FreeBSD-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.c | 2 |
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: |