]> Git Repo - qemu.git/commitdiff
mmap_frag() users only check for -1 error
authorJuan Quintela <[email protected]>
Tue, 19 Jan 2010 23:56:24 +0000 (00:56 +0100)
committerAnthony Liguori <[email protected]>
Tue, 26 Jan 2010 20:59:20 +0000 (14:59 -0600)
Signed-off-by: Juan Quintela <[email protected]>
Signed-off-by: Anthony Liguori <[email protected]>
linux-user/mmap.c

index c1c7e4858e56568d72ab7436cd6dee25b44b57df..25fc0b2959ef28a2b5b701e04c9849d4732fb34b 100644 (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))
This page took 0.035755 seconds and 4 git commands to generate.