projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
virtio_ring: fix avail_wrap_counter in virtqueue_add_packed
[linux-2.6-microblaze.git]
/
drivers
/
virtio
/
virtio_ring.c
diff --git
a/drivers/virtio/virtio_ring.c
b/drivers/virtio/virtio_ring.c
index
81ecb29
..
51d8f32
100644
(file)
--- a/
drivers/virtio/virtio_ring.c
+++ b/
drivers/virtio/virtio_ring.c
@@
-1499,7
+1499,7
@@
static inline int virtqueue_add_packed(struct virtqueue *_vq,
}
}
- if (i < head)
+ if (i <
=
head)
vq->packed.avail_wrap_counter ^= 1;
/* We're using some buffers from the free list. */