[CRIU] Re: [PATCH cr] restore: don't use an uninitialized variable

Pavel Emelyanov xemul at parallels.com
Tue May 15 10:25:48 EDT 2012


On 05/15/2012 05:51 PM, Andrey Vagin wrote:
> The global variable me isn't initialized, when we tried to use it.
> 
> Signed-off-by: Andrey Vagin <avagin at openvz.org>
> ---
>  cr-restore.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/cr-restore.c b/cr-restore.c
> index 0f83e2a..b876d13 100644
> --- a/cr-restore.c
> +++ b/cr-restore.c
> @@ -614,7 +614,7 @@ static int restore_task_with_children(void *_arg)
>  
>  	pid = getpid();
>  	if (ca->pid != pid) {
> -		pr_err("%d: Pid do not match expected %d\n", me->pid, ca->pid);
> +		pr_err("Pid %d do not match expected %d\n", pid, ca->pid);
>  		exit(-1);
>  	}
>  

Applied


More information about the CRIU mailing list