diff mbox

linux-user: Add missing unlock_user_struct to timer_create.

Message ID 1407023138-6957-1-git-send-email-erikd@mega-nerd.com
State New
Headers show

Commit Message

Erik de Castro Lopo Aug. 2, 2014, 11:45 p.m. UTC
Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
---
 linux-user/syscall.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Peter Maydell Aug. 3, 2014, 1:09 p.m. UTC | #1
On 3 August 2014 00:45, Erik de Castro Lopo <erikd@mega-nerd.com> wrote:
> 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;
>              }
>
> --

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>

thanks
-- PMM
Riku Voipio Aug. 6, 2014, 7:47 a.m. UTC | #2
On Sun, Aug 03, 2014 at 09:45:38AM +1000, Erik de Castro Lopo wrote:
> Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>

Thanks,

applied to linux-user tree.

> ---
>  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
>
diff mbox

Patch

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;
             }