From: Chen Gang S Date: Fri, 23 Jan 2015 10:07:50 +0000 (+0800) Subject: linux-user/syscall.c: Fix typo issue for using target_vec[i].iov_len instead of targe... X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~350^2~35 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=71ec7cef01b0f855cb9f774300f80d1ddcb91fc9;p=sdk%2Femulator%2Fqemu.git 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 Reviewed-by: Peter Maydell Signed-off-by: Michael Tokarev --- 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; }