[CRIU] [PATCH] restore: use a correct object core for restoring fpu

Pavel Emelyanov xemul at parallels.com
Mon Apr 29 10:40:51 EDT 2013


On 04/29/2013 05:56 PM, Andrey Vagin wrote:
> tcore (per thread core) should be used here
> 
> Signed-off-by: Andrey Vagin <avagin at openvz.org>
> ---
>  cr-restore.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/cr-restore.c b/cr-restore.c
> index 5161433..2a72d4a 100644
> --- a/cr-restore.c
> +++ b/cr-restore.c
> @@ -2033,7 +2033,7 @@ static int sigreturn_restore(pid_t pid, CoreEntry *core)
>  				goto err;
>  		}
>  
> -		if (sigreturn_prep_fpu_frame(&thread_args[i], core))
> +		if (sigreturn_prep_fpu_frame(&thread_args[i], tcore))
>  			goto err;
>  
>  		if (thread_args[i].pid != pid)
> 


applied


More information about the CRIU mailing list