Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 167919
b: refs/heads/master
c: 2d61ba9
h: refs/heads/master
i:
  167917: 61ced6b
  167915: fbaac7a
  167911: 560f14b
  167903: 986b4ec
v: v3
  • Loading branch information
Michael S. Tsirkin authored and Rusty Russell committed Oct 28, 2009
1 parent 798a85b commit 25280cf
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 0b22bd0ba0d500ab40e7673c591c594ec5447342
refs/heads/master: 2d61ba95034f1abbdec7729d52c740870a5eddb6
3 changes: 3 additions & 0 deletions trunk/drivers/virtio/virtio_ring.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,9 @@ static void *vring_get_buf(struct virtqueue *_vq, unsigned int *len)
return NULL;
}

/* Only get used array entries after they have been exposed by host. */
rmb();

i = vq->vring.used->ring[vq->last_used_idx%vq->vring.num].id;
*len = vq->vring.used->ring[vq->last_used_idx%vq->vring.num].len;

Expand Down

0 comments on commit 25280cf

Please sign in to comment.