Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 180787
b: refs/heads/master
c: 3b87062
h: refs/heads/master
i:
  180785: fe09fa6
  180783: 7cee357
v: v3
  • Loading branch information
Amit Shah authored and Rusty Russell committed Feb 24, 2010
1 parent bd1bfc0 commit 5aafe94
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c021eac4148c16bf53baa0dd14e8ebee6f39dab5
refs/heads/master: 3b8706240ee6084ccb46e53cd3a554356b7eeec8
5 changes: 4 additions & 1 deletion trunk/drivers/virtio/virtio_ring.c
Original file line number Diff line number Diff line change
Expand Up @@ -448,8 +448,11 @@ struct virtqueue *vring_new_virtqueue(unsigned int num,
/* Put everything in free lists. */
vq->num_free = num;
vq->free_head = 0;
for (i = 0; i < num-1; i++)
for (i = 0; i < num-1; i++) {
vq->vring.desc[i].next = i+1;
vq->data[i] = NULL;
}
vq->data[i] = NULL;

return &vq->vq;
}
Expand Down

0 comments on commit 5aafe94

Please sign in to comment.