diff options
Diffstat (limited to 'drivers/xen/gntalloc.c')
| -rw-r--r-- | drivers/xen/gntalloc.c | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/xen/gntalloc.c b/drivers/xen/gntalloc.c index e53fe191738c..14370df9ac1c 100644 --- a/drivers/xen/gntalloc.c +++ b/drivers/xen/gntalloc.c @@ -142,7 +142,8 @@ static int add_grefs(struct ioctl_gntalloc_alloc_gref *op,  		/* Grant foreign access to the page. */  		rc = gnttab_grant_foreign_access(op->domid, -			pfn_to_mfn(page_to_pfn(gref->page)), readonly); +						 xen_page_to_gfn(gref->page), +						 readonly);  		if (rc < 0)  			goto undo;  		gref_ids[i] = gref->gref_id = rc;  | 
