]> Git Repo - qemu.git/blobdiff - linux-user/syscall.c
linux-user: fd_trans_host_to_target_data() must process only received data
[qemu.git] / linux-user / syscall.c
index 33409c01babec9ed0ee9563f9c802eafb33548ed..4b0d79110444d4c4de832fe983fb3190f2df7e20 100644 (file)
@@ -2991,7 +2991,7 @@ static abi_long do_sendrecvmsg_locked(int fd, struct target_msghdr *msgp,
             len = ret;
             if (fd_trans_host_to_target_data(fd)) {
                 ret = fd_trans_host_to_target_data(fd)(msg.msg_iov->iov_base,
-                                                       msg.msg_iov->iov_len);
+                                                       len);
             } else {
                 ret = host_to_target_cmsg(msgp, &msg);
             }
This page took 0.023789 seconds and 4 git commands to generate.