Skip to contentSkip to conversation

[4250] Cope with arch-specific page protection flags in mmap ( Richard Purdie).

Qemu-devel Andrzej Zaborowski 1 participant 1 message Apr 24, 2008

lore
Share & tools
lore
#0 lore raw

Revision: 4250

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4250
Author:   balrog
Date:     2008-04-24 21:11:41 +0000 (Thu, 24 Apr 2008)

Log Message:
-----------
Cope with arch-specific page protection flags in mmap (Richard Purdie).

Modified Paths:
--------------
trunk/linux-user/mmap.c

Modified: trunk/linux-user/mmap.c
===================================================================

linux-user/mmap.c +1 -2
@@ -49,8 +49,7 @@
     end = start + len;
     if (end < start)
         return -EINVAL;
-    if (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC))
-        return -EINVAL;
+    prot &= PROT_READ | PROT_WRITE | PROT_EXEC;
     if (len == 0)
         return 0;