aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xenpaging/pagein.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/xenpaging/pagein.c')
-rw-r--r--tools/xenpaging/pagein.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/xenpaging/pagein.c b/tools/xenpaging/pagein.c
index e2d7840894..579620f241 100644
--- a/tools/xenpaging/pagein.c
+++ b/tools/xenpaging/pagein.c
@@ -44,7 +44,7 @@ static void *page_in(void *arg)
/* Ignore errors */
page = xc_map_foreign_pages(pia->xch, pia->dom, PROT_READ, gfns, num);
if (page)
- munmap(page, PAGE_SIZE);
+ munmap(page, PAGE_SIZE * num);
}
page_in_possible = 0;
pthread_exit(NULL);