virtio: use LGUEST_VRING_ALIGN instead of relying on pagesize
[deliverable/linux.git] / drivers / lguest / lguest_device.c
index a661bbdae3d62f657fc801eceb80d9afefc3e4bf..f062dc55c573530aa65e051c9f46ca1d4f139926 100644 (file)
@@ -250,7 +250,7 @@ static struct virtqueue *lg_find_vq(struct virtio_device *vdev,
        /* Figure out how many pages the ring will take, and map that memory */
        lvq->pages = lguest_map((unsigned long)lvq->config.pfn << PAGE_SHIFT,
                                DIV_ROUND_UP(vring_size(lvq->config.num,
-                                                       PAGE_SIZE),
+                                                       LGUEST_VRING_ALIGN),
                                             PAGE_SIZE));
        if (!lvq->pages) {
                err = -ENOMEM;
This page took 0.036578 seconds and 5 git commands to generate.