diff options
author | Pavel Zbitskiy <pavel.zbitskiy@gmail.com> | 2014-01-11 13:34:10 +0400 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2014-01-15 23:36:03 +0400 |
commit | fe54b24930f94bdfbc3d38eccd7adedf35f2f26f (patch) | |
tree | 8b81110f8b419a23ddcfdafa4d776dad6a99055f /linux-user | |
parent | 19a894ba777fa45c6f89ae007570311384204a69 (diff) | |
download | qemu-fe54b24930f94bdfbc3d38eccd7adedf35f2f26f.zip qemu-fe54b24930f94bdfbc3d38eccd7adedf35f2f26f.tar.gz qemu-fe54b24930f94bdfbc3d38eccd7adedf35f2f26f.tar.bz2 |
linux-user: fixed getsockopt() optlen
optlen parameter of getsockopt() of type socklen_t* was read into
variable of type socklen_t, that caused zeroing out of upper 4 bytes
when running s390x on top of x86_64. This patch changes optlen type
to abi_ulong.
Signed-off-by: Pavel Zbitskiy <pavel.zbitskiy@gmail.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'linux-user')
-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 0ac05b8..a9ce6ba 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -2406,7 +2406,7 @@ static abi_long do_socketcall(int num, abi_ulong vptr) abi_ulong level; abi_ulong optname; abi_ulong optval; - socklen_t optlen; + abi_ulong optlen; if (get_user_ual(sockfd, vptr) || get_user_ual(level, vptr + n) |