[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-trivial] [PATCH] linux-user/syscall.c: Fix typo issue for usin
From: |
Michael Tokarev |
Subject: |
Re: [Qemu-trivial] [PATCH] linux-user/syscall.c: Fix typo issue for using target_vec[i].iov_len instead of target_vec[i].iov_base |
Date: |
Tue, 27 Jan 2015 18:39:21 +0300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.3.0 |
23.01.2015 13:07, Chen Gang S wrote:
> It is only a typo issue, need use tswapal(target_vec[i].iov_len) for the
> len.
My suggestion:
Subject: linux-user/syscall.c: unlock_iovec: fix typo misuse of iov_base
instead of iov_len
without further explanation in the message body.
Applied as-is to trivial, thank you!
/mjt
> Signed-off-by: Chen Gang <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 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;
> }
>
Re: [Qemu-trivial] [PATCH] linux-user/syscall.c: Fix typo issue for using target_vec[i].iov_len instead of target_vec[i].iov_base,
Michael Tokarev <=