Message ID | 412af8ebea8dbf8f1c89e4c284bea577b3508364.1484950085.git.joseph.salisbury@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/drivers/hv/hv.c b/drivers/hv/hv.c index ab1f466..60db5ff 100644 --- a/drivers/hv/hv.c +++ b/drivers/hv/hv.c @@ -317,9 +317,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 }