[CRIU] [PATCH] mem: handle errors of page_xfer_dump_pages()

Pavel Emelyanov xemul at parallels.com
Thu Jan 23 01:25:25 PST 2014


On 01/22/2014 05:27 PM, Andrey Vagin wrote:
> Signed-off-by: Andrey Vagin <avagin at openvz.org>
> ---
>  mem.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/mem.c b/mem.c
> index e5a6889..a0ed920 100644
> --- a/mem.c
> +++ b/mem.c
> @@ -412,6 +412,8 @@ static int __parasite_dump_pages_seized(struct parasite_ctl *ctl,
>  			goto out_pp;
>  
>  		ret = page_xfer_dump_pages(&xfer, pp, 0);
> +		if (ret < 0)
> +			goto out_pp;
>  
>  		xfer.close(&xfer);
>  		timing_stop(TIME_MEMWRITE);
> 


applied, thanks


More information about the CRIU mailing list