[CRIU] Re: [PATCH] ipc: add error print in case of image read failure during variables restore

Pavel Emelyanov xemul at parallels.com
Fri Feb 10 06:37:18 EST 2012


On 02/10/2012 02:42 PM, Kinsbursky Stanislav wrote:
> 
> 
> Signed-off-by: Stanislav Kinsbursky <skinsbursky at parallels.com>

Ack

> ---
>  ipc_ns.c |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
> 
> diff --git a/ipc_ns.c b/ipc_ns.c
> index cb40b9a..9f7a357 100644
> --- a/ipc_ns.c
> +++ b/ipc_ns.c
> @@ -399,8 +399,10 @@ static int prepare_ipc_var(int pid)
>  		return -1;
>  
>  	ret = read_img(fd, &var);
> -	if (ret <= 0)
> +	if (ret <= 0) {
> +		pr_err("Failed to read IPC namespace variables\n");
>  		return -EFAULT;
> +	}
>  
>  	show_var_entry(&var);
>  
> 



More information about the CRIU mailing list