hv: don't reset hv_context.tsc_page on crash

am: 664f72a17f

Change-Id: I4683ea3e66af7091fae3e08f5867f98d219adee2
This commit is contained in:
Vitaly Kuznetsov
2017-03-12 08:28:03 +00:00
committed by android-build-merger

View File

@@ -309,9 +309,10 @@ void hv_cleanup(bool crash)
hypercall_msr.as_uint64 = 0;
wrmsrl(HV_X64_MSR_REFERENCE_TSC, hypercall_msr.as_uint64);
if (!crash)
if (!crash) {
vfree(hv_context.tsc_page);
hv_context.tsc_page = NULL;
hv_context.tsc_page = NULL;
}
}
#endif
}