qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [4250] Cope with arch-specific page protection flags in mmap ( Richard Purdie).
@ 2008-04-24 21:11 Andrzej Zaborowski
  0 siblings, 0 replies; only message in thread
From: Andrzej Zaborowski @ 2008-04-24 21:11 UTC (permalink / raw)
  To: qemu-devel

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
===================================================================
--- trunk/linux-user/mmap.c	2008-04-24 21:01:40 UTC (rev 4249)
+++ trunk/linux-user/mmap.c	2008-04-24 21:11:41 UTC (rev 4250)
@@ -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;
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-04-24 21:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-24 21:11 [Qemu-devel] [4250] Cope with arch-specific page protection flags in mmap ( Richard Purdie) Andrzej Zaborowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).