Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 347454
b: refs/heads/master
c: b92b1b8
h: refs/heads/master
v: v3
  • Loading branch information
Will Deacon authored and Rusty Russell committed Oct 22, 2012
1 parent c43a580 commit 3be2ee8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b9cdc88df8e63e81c723b82c286fc97f5d0dc325
refs/heads/master: b92b1b89a33c172c075edccf6afb0edc41d851fd
7 changes: 7 additions & 0 deletions trunk/drivers/virtio/virtio_ring.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,13 @@ static int vring_add_indirect(struct vring_virtqueue *vq,
unsigned head;
int i;

/*
* We require lowmem mappings for the descriptors because
* otherwise virt_to_phys will give us bogus addresses in the
* virtqueue.
*/
gfp &= ~(__GFP_HIGHMEM | __GFP_HIGH);

desc = kmalloc((out + in) * sizeof(struct vring_desc), gfp);
if (!desc)
return -ENOMEM;
Expand Down

0 comments on commit 3be2ee8

Please sign in to comment.