projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0f291f
)
mmap_frag() users only check for -1 error
author
Juan Quintela
<quintela@redhat.com>
Tue, 19 Jan 2010 23:56:24 +0000
(
00:56
+0100)
committer
Anthony Liguori
<aliguori@us.ibm.com>
Tue, 26 Jan 2010 20:59:20 +0000
(14:59 -0600)
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
linux-user/mmap.c
patch
|
blob
|
history
diff --git
a/linux-user/mmap.c
b/linux-user/mmap.c
index c1c7e4858e56568d72ab7436cd6dee25b44b57df..25fc0b2959ef28a2b5b701e04c9849d4732fb34b 100644
(file)
--- a/
linux-user/mmap.c
+++ b/
linux-user/mmap.c
@@
-243,7
+243,7
@@
static int mmap_frag(abi_ulong real_start,
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))