[Xen-changelog] [xen-unstable] linux, tpm: Fix argument to grant table operation

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Xen-changelog] [xen-unstable] linux, tpm: Fix argument to grant table operation

Xen patchbot-unstable
# HG changeset patch
# User [hidden email]
# Date 1172247847 0
# Node ID 58086aa7c70ab9ca2a8c7c90f44c4701dcc02ce4
# Parent  e21834bc78f2163e4d009e1891457565731adc72
linux, tpm: Fix argument to grant table operation
Signed-off-by: Stefan Berger <[hidden email]>
---
 linux-2.6-xen-sparse/drivers/char/tpm/tpm_xen.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r e21834bc78f2 -r 58086aa7c70a linux-2.6-xen-sparse/drivers/char/tpm/tpm_xen.c
--- a/linux-2.6-xen-sparse/drivers/char/tpm/tpm_xen.c Fri Feb 23 16:17:00 2007 +0000
+++ b/linux-2.6-xen-sparse/drivers/char/tpm/tpm_xen.c Fri Feb 23 16:24:07 2007 +0000
@@ -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-changelog mailing list
[hidden email]
http://lists.xensource.com/xen-changelog