]> git.proxmox.com Git - mirror_qemu.git/commit - linux-user/syscall.c
linux-user: Fix errno for sendrecvmsg with large iovec length
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 15 Jul 2016 13:57:27 +0000 (14:57 +0100)
committerRiku Voipio <riku.voipio@linaro.org>
Wed, 21 Sep 2016 11:20:31 +0000 (14:20 +0300)
commit97b079703350ec0f6625788fb380f1fa14d0e2c4
treea7bd4f96936f42c0c5a606cb16d6a6fbc9a2377b
parentdab32b321f4d510ed5171b12f68bd5aa7a02cffe
linux-user: Fix errno for sendrecvmsg with large iovec length

The sendmsg and recvmsg syscalls use a different errno to indicate
an overlarge iovec length from readv and writev. Handle this
special case in do_sendrcvmsg_locked() to avoid getting the
default errno returned by lock_iovec().

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/syscall.c