[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [4250] Cope with arch-specific page protection flags in mma
From: |
Andrzej Zaborowski |
Subject: |
[Qemu-devel] [4250] Cope with arch-specific page protection flags in mmap ( Richard Purdie). |
Date: |
Thu, 24 Apr 2008 21:11:41 +0000 |
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;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [4250] Cope with arch-specific page protection flags in mmap ( Richard Purdie).,
Andrzej Zaborowski <=