qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] linux-user/syscall.c: Fix typo issue for using target_vec[i].iov_len instead of target_vec[i].iov_base
@ 2015-01-23 10:07 Chen Gang S
  2015-01-23 10:08 ` Peter Maydell
  2015-01-27 15:39 ` Michael Tokarev
  0 siblings, 2 replies; 8+ messages in thread
From: Chen Gang S @ 2015-01-23 10:07 UTC (permalink / raw)
  To: riku.voipio; +Cc: QEMU Trivial, qemu-devel

It is only a typo issue, need use tswapal(target_vec[i].iov_len) for the
len.

Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
---
 linux-user/syscall.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index a66c2ae..8260ed7 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -1896,7 +1896,7 @@ static void unlock_iovec(struct iovec *vec, abi_ulong target_addr,
     if (target_vec) {
         for (i = 0; i < count; i++) {
             abi_ulong base = tswapal(target_vec[i].iov_base);
-            abi_long len = tswapal(target_vec[i].iov_base);
+            abi_long len = tswapal(target_vec[i].iov_len);
             if (len < 0) {
                 break;
             }
-- 
1.9.3 (Apple Git-50)

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-01-27 15:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-23 10:07 [Qemu-devel] [PATCH] linux-user/syscall.c: Fix typo issue for using target_vec[i].iov_len instead of target_vec[i].iov_base Chen Gang S
2015-01-23 10:08 ` Peter Maydell
2015-01-23 10:57   ` Chen Gang S
2015-01-23 11:21     ` Peter Maydell
2015-01-23 14:01       ` Chen Gang S
2015-01-23 13:55         ` Peter Maydell
2015-01-23 21:10           ` Chen Gang S
2015-01-27 15:39 ` Michael Tokarev

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).