diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2009-07-14 19:45:36 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2009-07-14 19:45:36 +0000 |
| commit | 0fe0ed8bf88b8aed13fc4533e97b94d2919ac6d5 (patch) | |
| tree | c7668a2a58d716a617574fb0350e77267a41f5ee /sys/vm/vm_mmap.c | |
| parent | ec71a417a88f887eaa947f4cb72e449413614185 (diff) | |
Notes
Diffstat (limited to 'sys/vm/vm_mmap.c')
| -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 cc7a0f42c049..2b99e3653df3 100644 --- a/sys/vm/vm_mmap.c +++ b/sys/vm/vm_mmap.c @@ -229,7 +229,7 @@ mmap(td, uap) fp = NULL; /* make sure mapping fits into numeric range etc */ - if ((ssize_t) uap->len < 0 || + if (uap->len == 0 || ((flags & MAP_ANON) && uap->fd != -1)) return (EINVAL); |
