aboutsummaryrefslogtreecommitdiffstats
path: root/main/linux-grsec/hv-grsec.patch
blob: 6fde341990365f47e785d40e108e4c79e7d3bb1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/drivers/staging/hv/Hv.c b/drivers/staging/hv/Hv.c
index b12237f..9d47edb 100644
--- a/drivers/staging/hv/Hv.c
+++ b/drivers/staging/hv/Hv.c
@@ -133,7 +133,7 @@ static u64 HvDoHypercall(u64 Control, void *Input, void *Output)
 	u64 hvStatus = 0;
 	u64 inputAddress = (Input) ? virt_to_phys(Input) : 0;
 	u64 outputAddress = (Output) ? virt_to_phys(Output) : 0;
-	volatile void *hypercallPage = gHvContext.HypercallPage;
+	volatile void *hypercallPage = ktva_ktla(gHvContext.HypercallPage);
 
 	DPRINT_DBG(VMBUS, "Hypercall <control %llx input phys %llx virt %p "
 		   "output phys %llx virt %p hypercall %p>",