Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

virtio: fix a stupid bug in virtio_pull_chain

  • Loading branch information...
commit 7486558134aafa959ec405bde3ee89b5912b5223 1 parent ce4109f
@xl0 xl0 authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 virtio/virtio.c
View
4 virtio/virtio.c
@@ -881,7 +881,9 @@ virtio_pull_chain(struct virtqueue *vq, uint32_t *len)
ASSERT((!tmp->qe_next) ||
tmp->qe_next->qe_index == tmp->qe_desc->next);
- } while (tmp->qe_next);
+
+ tmp = tmp->qe_next;
+ } while (tmp);
return (head);
}
Please sign in to comment.
Something went wrong with that request. Please try again.