diff options
Diffstat (limited to 'drivers/virtio/virtio_ring.c')
-rw-r--r-- | drivers/virtio/virtio_ring.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c index e639584b2dbd..286c30cb393d 100644 --- a/drivers/virtio/virtio_ring.c +++ b/drivers/virtio/virtio_ring.c | |||
@@ -135,6 +135,13 @@ static int vring_add_indirect(struct vring_virtqueue *vq, | |||
135 | unsigned head; | 135 | unsigned head; |
136 | int i; | 136 | int i; |
137 | 137 | ||
138 | /* | ||
139 | * We require lowmem mappings for the descriptors because | ||
140 | * otherwise virt_to_phys will give us bogus addresses in the | ||
141 | * virtqueue. | ||
142 | */ | ||
143 | gfp &= ~(__GFP_HIGHMEM | __GFP_HIGH); | ||
144 | |||
138 | desc = kmalloc((out + in) * sizeof(struct vring_desc), gfp); | 145 | desc = kmalloc((out + in) * sizeof(struct vring_desc), gfp); |
139 | if (!desc) | 146 | if (!desc) |
140 | return -ENOMEM; | 147 | return -ENOMEM; |