Skip to contentSkip to conversation

Fix argument to grant table operation

PATCH New Stefan Berger 1 participant 1 message Feb 23, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix argument to grant table operation

This fixes an argument to the grant table operation.

linux-2.6-xen-sparse/drivers/char/tpm/tpm_xen.c +1 -1
diff -r f62a052384a5 linux-2.6-xen-sparse/drivers/char/tpm/tpm_xen.c
@@ -641,7 +641,7 @@ static int tpm_xmit(struct tpm_private *
 		}
 		gnttab_grant_foreign_access_ref( tx->ref,
 		                                 tp->backend_id,
-		                                 (tx->addr >> PAGE_SHIFT),
+		                                 virt_to_mfn(txb->data),
 		                                 0 /*RW*/);
 		wmb();
 	}

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel