commit | ee636500d6eab44b83f09cb730b67226b70423b1 | [log] [tgz] |
---|---|---|
author | Juan Quintela <quintela@redhat.com> | Wed Jan 20 00:56:24 2010 +0100 |
committer | Anthony Liguori <aliguori@us.ibm.com> | Tue Jan 26 14:59:20 2010 -0600 |
tree | 54028bd63c8b5eb3a8fe245b031e2159521e6ff8 | |
parent | a0f291fc101a7ab3e40850a329da2cc2f2cd1f2d [diff] |
mmap_frag() users only check for -1 error Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
diff --git a/linux-user/mmap.c b/linux-user/mmap.c index c1c7e48..25fc0b2 100644 --- a/linux-user/mmap.c +++ b/linux-user/mmap.c
@@ -243,7 +243,7 @@ possible while it is a shared mapping */ if ((flags & MAP_TYPE) == MAP_SHARED && (prot & PROT_WRITE)) - return -EINVAL; + return -1; /* adjust protection to be able to read */ if (!(prot1 & PROT_WRITE))