diff options
author | Marcin Juszkiewicz <hrw@openembedded.org> | 2008-10-23 17:40:41 +0200 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openembedded.org> | 2008-10-23 17:40:41 +0200 |
commit | 82b5d4ce1ba5e74f7d700af30d3e4b0a4e2d243e (patch) | |
tree | 5392b74e54e22867a4127caaad4ec9890f5b2a14 /packages/qemu/qemu-0.9.1+svn/fix_protection_bits.patch | |
parent | a9acdf3130aea04eeb9064530b748dafe9bc4323 (diff) | |
download | openembedded-82b5d4ce1ba5e74f7d700af30d3e4b0a4e2d243e.tar.gz |
qemu: added SVN version (from Poky)
Diffstat (limited to 'packages/qemu/qemu-0.9.1+svn/fix_protection_bits.patch')
-rw-r--r-- | packages/qemu/qemu-0.9.1+svn/fix_protection_bits.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/packages/qemu/qemu-0.9.1+svn/fix_protection_bits.patch b/packages/qemu/qemu-0.9.1+svn/fix_protection_bits.patch new file mode 100644 index 0000000000..ee2b077602 --- /dev/null +++ b/packages/qemu/qemu-0.9.1+svn/fix_protection_bits.patch @@ -0,0 +1,14 @@ +Index: qemu-0.9.1/linux-user/mmap.c +=================================================================== +--- qemu-0.9.1.orig/linux-user/mmap.c 2008-04-16 14:10:26.000000000 +0100 ++++ qemu-0.9.1/linux-user/mmap.c 2008-04-16 14:10:51.000000000 +0100 +@@ -49,8 +49,7 @@ + end = start + len; + if (end < start) + return -EINVAL; +- if (prot & ~(PROT_READ | PROT_WRITE | PROT_EXEC)) +- return -EINVAL; ++ prot = prot & (PROT_READ | PROT_WRITE | PROT_EXEC); + if (len == 0) + return 0; + |