From: Stefan Berger Subject: [PATCH] [TPM] Fix argument to grant table operation Date: Fri, 23 Feb 2007 10:24:38 -0500 Message-ID: <1172244278.30716.2.camel@941e-2.watson.ibm.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-kj5ewkdCqTEkAjruK7CS" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org --=-kj5ewkdCqTEkAjruK7CS Content-Type: text/plain Content-Transfer-Encoding: 7bit This fixes an argument to the grant table operation. Signed-off-by: Stefan Berger --=-kj5ewkdCqTEkAjruK7CS Content-Disposition: attachment; filename=tpmfront_mfn_fix.diff Content-Type: text/x-patch; name=tpmfront_mfn_fix.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit diff -r f62a052384a5 linux-2.6-xen-sparse/drivers/char/tpm/tpm_xen.c --- a/linux-2.6-xen-sparse/drivers/char/tpm/tpm_xen.c Wed Feb 21 18:38:11 2007 -0800 +++ b/linux-2.6-xen-sparse/drivers/char/tpm/tpm_xen.c Fri Feb 23 10:21:58 2007 -0500 @@ -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(); } --=-kj5ewkdCqTEkAjruK7CS Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=-kj5ewkdCqTEkAjruK7CS--