diff options
author | Chen Gang S | 2015-01-23 11:07:50 +0100 |
---|---|---|
committer | Michael Tokarev | 2015-02-10 07:27:20 +0100 |
commit | 71ec7cef01b0f855cb9f774300f80d1ddcb91fc9 (patch) | |
tree | 544c0b3bea6f232a8391da0d957955d1cfe5bfae /linux-user/syscall.c | |
parent | linux-user/syscall.c: lock_iovec: unlock vec[i] in failure processing code block (diff) | |
download | qemu-71ec7cef01b0f855cb9f774300f80d1ddcb91fc9.tar.gz qemu-71ec7cef01b0f855cb9f774300f80d1ddcb91fc9.tar.xz qemu-71ec7cef01b0f855cb9f774300f80d1ddcb91fc9.zip |
linux-user/syscall.c: Fix typo issue for using target_vec[i].iov_len instead of target_vec[i].iov_base
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>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'linux-user/syscall.c')
-rw-r--r-- | linux-user/syscall.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 7b6f482970..310080c0c9 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; } |