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 | 728a4238c82ef3e04884d9fff66c11a8aab607f0 (patch) | |
tree | ce82747a07d9e4fe6f4061f7ee4661346236fcca /bsd-user | |
parent | ad7e8432a1fb54e93bfe49097e074558f26296a2 (diff) | |
download | qemu-728a4238c82ef3e04884d9fff66c11a8aab607f0.tar.gz qemu-728a4238c82ef3e04884d9fff66c11a8aab607f0.tar.bz2 qemu-728a4238c82ef3e04884d9fff66c11a8aab607f0.zip |
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 'bsd-user')
-rw-r--r-- | bsd-user/mmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bsd-user/mmap.c b/bsd-user/mmap.c index ff207cd55d..139cd3f442 100644 --- a/bsd-user/mmap.c +++ b/bsd-user/mmap.c @@ -240,7 +240,7 @@ static int mmap_frag(abi_ulong real_start, possible while it is a shared mapping */ if ((flags & TARGET_BSD_MAP_FLAGMASK) == MAP_SHARED && (prot & PROT_WRITE)) - return -EINVAL; + return -1; /* adjust protection to be able to read */ if (!(prot1 & PROT_WRITE)) |