sim-card
/
qemu
Archived
10
0
Fork 0

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>
This commit is contained in:
Juan Quintela 2010-01-20 00:56:24 +01:00 committed by Anthony Liguori
parent a0f291fc10
commit ee636500d6
1 changed files with 1 additions and 1 deletions

View File

@ -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))