summaryrefslogtreecommitdiffstats
path: root/meta/packages/qemu/qemu-0.9.1+svn/fix_protection_bits.patch
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-04-24 16:54:09 +0000
committerRichard Purdie <richard@openedhand.com>2008-04-24 16:54:09 +0000
commit0e1fe2007df82725e6ce46d4f92d8bf4434ee887 (patch)
tree8c6be983b34616340515174ac60d9d56f61b44ed /meta/packages/qemu/qemu-0.9.1+svn/fix_protection_bits.patch
parent755df3ab5e279fd19c816b17195b07d8ed2973c4 (diff)
downloadpoky-0e1fe2007df82725e6ce46d4f92d8bf4434ee887.tar.gz
qemu: Add two qemu usermode fixes
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4331 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/qemu/qemu-0.9.1+svn/fix_protection_bits.patch')
-rw-r--r--meta/packages/qemu/qemu-0.9.1+svn/fix_protection_bits.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/meta/packages/qemu/qemu-0.9.1+svn/fix_protection_bits.patch b/meta/packages/qemu/qemu-0.9.1+svn/fix_protection_bits.patch
new file mode 100644
index 0000000000..ee2b077602
--- /dev/null
+++ b/meta/packages/qemu/qemu-0.9.1+svn/fix_protection_bits.patch
@@ -0,0 +1,14 @@
1Index: qemu-0.9.1/linux-user/mmap.c
2===================================================================
3--- qemu-0.9.1.orig/linux-user/mmap.c 2008-04-16 14:10:26.000000000 +0100
4+++ qemu-0.9.1/linux-user/mmap.c 2008-04-16 14:10:51.000000000 +0100
5@@ -49,8 +49,7 @@
6 end = start + len;
7 if (end < start)
8 return -EINVAL;
9- if (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC))
10- return -EINVAL;
11+ prot = prot & (PROT_READ | PROT_WRITE | PROT_EXEC);
12 if (len == 0)
13 return 0;
14