diff options
Diffstat (limited to 'drivers/xen/privcmd.c')
-rw-r--r-- | drivers/xen/privcmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/xen/privcmd.c b/drivers/xen/privcmd.c index df2e6f783318..527de56f832f 100644 --- a/drivers/xen/privcmd.c +++ b/drivers/xen/privcmd.c | |||
@@ -335,8 +335,8 @@ static int mmap_batch_fn(void *data, int nr, void *state) | |||
335 | st->global_error = 1; | 335 | st->global_error = 1; |
336 | } | 336 | } |
337 | } | 337 | } |
338 | st->va += PAGE_SIZE * nr; | 338 | st->va += XEN_PAGE_SIZE * nr; |
339 | st->index += nr; | 339 | st->index += nr / XEN_PFN_PER_PAGE; |
340 | 340 | ||
341 | return 0; | 341 | return 0; |
342 | } | 342 | } |