qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Erik de Castro Lopo <erikd@mega-nerd.com>
To: qemu-devel@nongnu.org
Cc: Peter Maydell <peter.maydell@linaro.org>,
	Riku Voipio <riku.voipio@iki.fi>,
	Erik de Castro Lopo <erikd@mega-nerd.com>
Subject: [Qemu-devel] [PATCH] linux-user: Add missing unlock_user_struct to timer_create.
Date: Sun,  3 Aug 2014 09:45:38 +1000	[thread overview]
Message-ID: <1407023138-6957-1-git-send-email-erikd@mega-nerd.com> (raw)
In-Reply-To: <1406988633-29469-1-git-send-email-erikd@mega-nerd.com>

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
---
 linux-user/syscall.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index a50229d..5f22b37 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -9432,6 +9432,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
                 host_sevp.sigev_signo = tswap32(ptarget_sevp->sigev_signo);
                 host_sevp.sigev_notify = tswap32(ptarget_sevp->sigev_notify);
 
+                unlock_user_struct(ptarget_sevp, arg2, 0);
                 phost_sevp = &host_sevp;
             }
 
-- 
2.0.1

  parent reply	other threads:[~2014-08-02 23:46 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-02 14:10 [Qemu-devel] [PATCH] linux-user/syscall.c : Minor cleanups of timer_create handling Erik de Castro Lopo
2014-08-02 15:05 ` Peter Maydell
2014-08-02 22:48   ` Erik de Castro Lopo
2014-08-02 22:50     ` Peter Maydell
2014-08-02 23:21       ` Erik de Castro Lopo
2014-08-02 23:30         ` Peter Maydell
2014-08-02 23:45 ` Erik de Castro Lopo [this message]
2014-08-03 13:09   ` [Qemu-devel] [PATCH] linux-user: Add missing unlock_user_struct to timer_create Peter Maydell
2014-08-06  7:47   ` Riku Voipio

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=1407023138-6957-1-git-send-email-erikd@mega-nerd.com \
    --to=erikd@mega-nerd.com \
    --cc=peter.maydell@linaro.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).