diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2010-01-31 13:41:07 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-01-31 13:41:07 +0000 |
commit | 059bca46bbfd7f16cd2ccca631b91334e08d9abb (patch) | |
tree | ce82747a07d9e4fe6f4061f7ee4661346236fcca /darwin-user/mmap.c | |
parent | 416c60602f8170eb9deca65ae2236d18cd7d877e (diff) | |
download | qemu-059bca46bbfd7f16cd2ccca631b91334e08d9abb.zip qemu-059bca46bbfd7f16cd2ccca631b91334e08d9abb.tar.gz qemu-059bca46bbfd7f16cd2ccca631b91334e08d9abb.tar.bz2 |
bsd/darwin-user: mmap_frag() users only check for -1 error
See also ee636500d6eab44b83f09cb730b67226b70423b1.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'darwin-user/mmap.c')
-rw-r--r-- | darwin-user/mmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/darwin-user/mmap.c b/darwin-user/mmap.c index 8ba61fb..d840b28 100644 --- a/darwin-user/mmap.c +++ b/darwin-user/mmap.c @@ -129,7 +129,7 @@ int mmap_frag(unsigned long host_start, if ((flags & MAP_SHARED) && #endif (prot & PROT_WRITE)) - return -EINVAL; + return -1; /* adjust protection to be able to read */ if (!(prot1 & PROT_WRITE)) |