direct-io.hg

changeset 14086:58086aa7c70a

linux, tpm: Fix argument to grant table operation
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
author kfraser@localhost.localdomain
date Fri Feb 23 16:24:07 2007 +0000 (2007-02-23)
parents e21834bc78f2
children 6253b8d32eb9
files linux-2.6-xen-sparse/drivers/char/tpm/tpm_xen.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/char/tpm/tpm_xen.c	Fri Feb 23 16:17:00 2007 +0000
     1.2 +++ b/linux-2.6-xen-sparse/drivers/char/tpm/tpm_xen.c	Fri Feb 23 16:24:07 2007 +0000
     1.3 @@ -641,7 +641,7 @@ static int tpm_xmit(struct tpm_private *
     1.4  		}
     1.5  		gnttab_grant_foreign_access_ref( tx->ref,
     1.6  		                                 tp->backend_id,
     1.7 -		                                 (tx->addr >> PAGE_SHIFT),
     1.8 +		                                 virt_to_mfn(txb->data),
     1.9  		                                 0 /*RW*/);
    1.10  		wmb();
    1.11  	}