aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/xen/gntdev.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/xen/gntdev.c b/drivers/xen/gntdev.c
index d43ff3072c99..d96d311b858e 100644
--- a/drivers/xen/gntdev.c
+++ b/drivers/xen/gntdev.c
@@ -257,14 +257,13 @@ static int find_grant_ptes(pte_t *pte, pgtable_t token,
257static int map_grant_pages(struct grant_map *map) 257static int map_grant_pages(struct grant_map *map)
258{ 258{
259 int i, err = 0; 259 int i, err = 0;
260 phys_addr_t addr;
261 260
262 if (!use_ptemod) { 261 if (!use_ptemod) {
263 /* Note: it could already be mapped */ 262 /* Note: it could already be mapped */
264 if (map->map_ops[0].handle != -1) 263 if (map->map_ops[0].handle != -1)
265 return 0; 264 return 0;
266 for (i = 0; i < map->count; i++) { 265 for (i = 0; i < map->count; i++) {
267 addr = (phys_addr_t) 266 unsigned long addr = (unsigned long)
268 pfn_to_kaddr(page_to_pfn(map->pages[i])); 267 pfn_to_kaddr(page_to_pfn(map->pages[i]));
269 gnttab_set_map_op(&map->map_ops[i], addr, map->flags, 268 gnttab_set_map_op(&map->map_ops[i], addr, map->flags,
270 map->grants[i].ref, 269 map->grants[i].ref,