X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;ds=sidebyside;f=drivers%2Fxen%2Fprivcmd.c;h=feca75b07fddce01e6e121542d3e0b74d321f85f;hb=51c933f208c51b3e5371779ba3c246bde144ed11;hp=7a92a5e1d40c6f17227936ee2b6925286deab511;hpb=0337966d121ebebf73a1c346123e8112796e684e;p=karo-tx-linux.git diff --git a/drivers/xen/privcmd.c b/drivers/xen/privcmd.c index 7a92a5e1d40c..feca75b07fdd 100644 --- a/drivers/xen/privcmd.c +++ b/drivers/xen/privcmd.c @@ -362,8 +362,8 @@ static int mmap_batch_fn(void *data, int nr, void *state) st->global_error = 1; } } - st->va += PAGE_SIZE * nr; - st->index += nr; + st->va += XEN_PAGE_SIZE * nr; + st->index += nr / XEN_PFN_PER_PAGE; return 0; }