summaryrefslogtreecommitdiffstats
path: root/meta/packages/qemu/qemu-0.9.1+svn/writev_fix.patch
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openedhand.com>2008-04-23 10:40:00 +0000
committerMarcin Juszkiewicz <hrw@openedhand.com>2008-04-23 10:40:00 +0000
commitb37a06703c214768619cc2816ae3af34bf6a7511 (patch)
tree72efae4280a66a7aa813fb072b76f8ceb84f797d /meta/packages/qemu/qemu-0.9.1+svn/writev_fix.patch
parenta2513fb4c43954296aab493312bb6dbd8299c4c9 (diff)
downloadpoky-b37a06703c214768619cc2816ae3af34bf6a7511.tar.gz
qemu: added SVN recipes
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4322 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/qemu/qemu-0.9.1+svn/writev_fix.patch')
-rw-r--r--meta/packages/qemu/qemu-0.9.1+svn/writev_fix.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/meta/packages/qemu/qemu-0.9.1+svn/writev_fix.patch b/meta/packages/qemu/qemu-0.9.1+svn/writev_fix.patch
new file mode 100644
index 0000000000..e0ed4af972
--- /dev/null
+++ b/meta/packages/qemu/qemu-0.9.1+svn/writev_fix.patch
@@ -0,0 +1,17 @@
1---
2 linux-user/syscall.c | 2 +-
3 1 file changed, 1 insertion(+), 1 deletion(-)
4
5Index: qemu-0.9.1/linux-user/syscall.c
6===================================================================
7--- qemu-0.9.1.orig/linux-user/syscall.c 2008-02-03 00:00:00.000000000 +0000
8+++ qemu-0.9.1/linux-user/syscall.c 2008-02-03 00:00:38.000000000 +0000
9@@ -1048,7 +1048,7 @@ static abi_long lock_iovec(int type, str
10 base = tswapl(target_vec[i].iov_base);
11 vec[i].iov_len = tswapl(target_vec[i].iov_len);
12 vec[i].iov_base = lock_user(type, base, vec[i].iov_len, copy);
13- if (!vec[i].iov_base)
14+ if (!vec[i].iov_base && vec[i].iov_len)
15 goto fail;
16 }
17 unlock_user (target_vec, target_addr, 0);