From: Mike Frysinger <vapier@gentoo.org>
To: qemu-devel@nongnu.org, Riku Voipio <riku.voipio@iki.fi>
Subject: [Qemu-devel] [PATCH 1/9] linux-user: fix sizeof handling for getsockopt
Date: Mon, 7 Feb 2011 01:05:49 -0500 [thread overview]
Message-ID: <1297058757-7611-1-git-send-email-vapier@gentoo.org> (raw)
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
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
next reply other threads:[~2011-02-07 6:06 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-07 6:05 Mike Frysinger [this message]
2011-02-07 6:05 ` [Qemu-devel] [PATCH 2/9] linux-user/elfload: add FDPIC support Mike Frysinger
2011-02-07 6:05 ` [Qemu-devel] [PATCH 3/9] linux-user: add ppoll syscall support Mike Frysinger
2011-02-07 6:05 ` [Qemu-devel] [PATCH 4/9] linux-user: decode MAP_{UNINITIALIZED, EXECUTABLE} in strace Mike Frysinger
2011-02-07 6:05 ` [Qemu-devel] [PATCH 5/9] linux-user/FLAT: fix auto-stack sizing Mike Frysinger
2011-02-07 6:05 ` [Qemu-devel] [PATCH 6/9] linux-user/FLAT: allow targets to override FLAT processing Mike Frysinger
2011-02-07 6:05 ` [Qemu-devel] [PATCH 7/9] linux-user: implement sched_{g, s}etaffinity Mike Frysinger
2011-02-07 6:05 ` [Qemu-devel] [PATCH 8/9] user: speed up init_paths a bit Mike Frysinger
2011-02-07 6:05 ` [Qemu-devel] [PATCH 9/9] linux-user: fix build errors for mmap2-only ports Mike Frysinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1297058757-7611-1-git-send-email-vapier@gentoo.org \
--to=vapier@gentoo.org \
--cc=qemu-devel@nongnu.org \
--cc=riku.voipio@iki.fi \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).