Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 331411
b: refs/heads/master
c: 3850d29
h: refs/heads/master
i:
  331409: 9f9a41f
  331407: 6d730d5
v: v3
  • Loading branch information
Brian Foley authored and Rusty Russell committed Sep 28, 2012
1 parent 90c30b9 commit ea89813
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 74a74b376c997645b32a4fdf8e76705a00ae097a
refs/heads/master: 3850d29fc40f3494a3e9c3aac45b6afe53526449
4 changes: 2 additions & 2 deletions trunk/drivers/virtio/virtio_mmio.c
Original file line number Diff line number Diff line change
Expand Up @@ -334,8 +334,8 @@ static struct virtqueue *vm_setup_vq(struct virtio_device *vdev, unsigned index,
while (1) {
size = PAGE_ALIGN(vring_size(info->num,
VIRTIO_MMIO_VRING_ALIGN));
/* Already smallest possible allocation? */
if (size <= VIRTIO_MMIO_VRING_ALIGN * 2) {
/* Did the last iter shrink the queue below minimum size? */
if (size < VIRTIO_MMIO_VRING_ALIGN * 2) {
err = -ENOMEM;
goto error_alloc_pages;
}
Expand Down

0 comments on commit ea89813

Please sign in to comment.