From: Li Qiang <[email protected]> When migrate_add_blocker failed, the invtsc_mig_blocker is not appended so no need to remove. This can save several instructions.
Signed-off-by: Li Qiang <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]> --- target/i386/kvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/i386/kvm.c b/target/i386/kvm.c index 7b7a565..115d8b4 100644 --- a/target/i386/kvm.c +++ b/target/i386/kvm.c @@ -1198,7 +1198,7 @@ int kvm_arch_init_vcpu(CPUState *cs) if (local_err) { error_report_err(local_err); error_free(invtsc_mig_blocker); - goto fail; + return r; } /* for savevm */ vmstate_x86_cpu.unmigratable = 1; -- 1.8.3.1
