summaryrefslogtreecommitdiff
path: root/sys/vm/vm_mmap.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2009-07-14 19:45:36 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2009-07-14 19:45:36 +0000
commit0fe0ed8bf88b8aed13fc4533e97b94d2919ac6d5 (patch)
treec7668a2a58d716a617574fb0350e77267a41f5ee /sys/vm/vm_mmap.c
parentec71a417a88f887eaa947f4cb72e449413614185 (diff)
Notes
Diffstat (limited to 'sys/vm/vm_mmap.c')
-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 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);