[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/9] linux-user: fix sizeof handling for getsockopt
From: |
Mike Frysinger |
Subject: |
[Qemu-devel] [PATCH 1/9] linux-user: fix sizeof handling for getsockopt |
Date: |
Mon, 7 Feb 2011 01:05:49 -0500 |
Signed-off-by: Mike Frysinger <address@hidden>
---
linux-user/syscall.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 499c4d7..6116ab5 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -1448,7 +1448,7 @@ static abi_long do_getsockopt(int sockfd, int level, int
optname,
return -TARGET_EFAULT;
if (len < 0)
return -TARGET_EINVAL;
- lv = sizeof(int);
+ lv = sizeof(lv);
ret = get_errno(getsockopt(sockfd, level, optname, &val, &lv));
if (ret < 0)
return ret;
@@ -1485,7 +1485,7 @@ static abi_long do_getsockopt(int sockfd, int level, int
optname,
return -TARGET_EFAULT;
if (len < 0)
return -TARGET_EINVAL;
- lv = sizeof(int);
+ lv = sizeof(lv);
ret = get_errno(getsockopt(sockfd, level, optname, &val, &lv));
if (ret < 0)
return ret;
--
1.7.4
- [Qemu-devel] [PATCH 1/9] linux-user: fix sizeof handling for getsockopt,
Mike Frysinger <=
- [Qemu-devel] [PATCH 2/9] linux-user/elfload: add FDPIC support, Mike Frysinger, 2011/02/07
- [Qemu-devel] [PATCH 7/9] linux-user: implement sched_{g, s}etaffinity, Mike Frysinger, 2011/02/07
- [Qemu-devel] [PATCH 8/9] user: speed up init_paths a bit, Mike Frysinger, 2011/02/07
- [Qemu-devel] [PATCH 3/9] linux-user: add ppoll syscall support, Mike Frysinger, 2011/02/07
- [Qemu-devel] [PATCH 9/9] linux-user: fix build errors for mmap2-only ports, Mike Frysinger, 2011/02/07
- [Qemu-devel] [PATCH 6/9] linux-user/FLAT: allow targets to override FLAT processing, Mike Frysinger, 2011/02/07
- [Qemu-devel] [PATCH 4/9] linux-user: decode MAP_{UNINITIALIZED, EXECUTABLE} in strace, Mike Frysinger, 2011/02/07
- [Qemu-devel] [PATCH 5/9] linux-user/FLAT: fix auto-stack sizing, Mike Frysinger, 2011/02/07