qemu-trivial
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-trivial] [PULL 10/46] linux-user/syscall.c: Fix typo issue for usi


From: Michael Tokarev
Subject: [Qemu-trivial] [PULL 10/46] linux-user/syscall.c: Fix typo issue for using target_vec[i].iov_len instead of target_vec[i].iov_base
Date: Tue, 10 Feb 2015 09:33:59 +0300

From: Chen Gang S <address@hidden>

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

Signed-off-by: Chen Gang <address@hidden>
Reviewed-by: Peter Maydell <address@hidden>
Signed-off-by: Michael Tokarev <address@hidden>
---
 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 7b6f482..310080c 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -1906,7 +1906,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;
             }
-- 
2.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]