Message ID | 1452235131-1861-4-git-send-email-wency@cn.fujitsu.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
some commit message would be better. Reviewed-by: Yang Hongyang <hongyang.yang@easystack.cn> On 01/08/2016 02:38 PM, Wen Congyang wrote: > Signed-off-by: Wen Congyang <wency@cn.fujitsu.com> > Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com> > --- > tools/libxc/xc_sr_save.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/libxc/xc_sr_save.c b/tools/libxc/xc_sr_save.c > index 88d85ef..e532168 100644 > --- a/tools/libxc/xc_sr_save.c > +++ b/tools/libxc/xc_sr_save.c > @@ -795,7 +795,7 @@ static int save(struct xc_sr_context *ctx, uint16_t guest_type) > > rc = ctx->save.callbacks->checkpoint(ctx->save.callbacks->data); > if ( rc <= 0 ) > - ctx->save.checkpointed = false; > + goto err; > } > } while ( ctx->save.checkpointed ); > >
diff --git a/tools/libxc/xc_sr_save.c b/tools/libxc/xc_sr_save.c index 88d85ef..e532168 100644 --- a/tools/libxc/xc_sr_save.c +++ b/tools/libxc/xc_sr_save.c @@ -795,7 +795,7 @@ static int save(struct xc_sr_context *ctx, uint16_t guest_type) rc = ctx->save.callbacks->checkpoint(ctx->save.callbacks->data); if ( rc <= 0 ) - ctx->save.checkpointed = false; + goto err; } } while ( ctx->save.checkpointed );