projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
xen: Use correctly the Xen memory terminologies
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
xen
/
gntalloc.c
diff --git
a/drivers/xen/gntalloc.c
b/drivers/xen/gntalloc.c
index e53fe191738cfe8ce7c7cfe6202c2651258ff952..14370df9ac1cc17eeb554f16176fa5c5288d5338 100644
(file)
--- 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;