aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/virtio_ring.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/virtio_ring.h')
-rw-r--r--include/linux/virtio_ring.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/virtio_ring.h b/include/linux/virtio_ring.h
index ac69e7bb5a14..5b88d215af50 100644
--- a/include/linux/virtio_ring.h
+++ b/include/linux/virtio_ring.h
@@ -92,8 +92,8 @@ static inline void vring_init(struct vring *vr, unsigned int num, void *p)
92{ 92{
93 vr->num = num; 93 vr->num = num;
94 vr->desc = p; 94 vr->desc = p;
95 vr->avail = p + num*sizeof(struct vring); 95 vr->avail = p + num*sizeof(struct vring_desc);
96 vr->used = p + (num+1)*(sizeof(struct vring) + sizeof(__u16)); 96 vr->used = p + (num+1)*(sizeof(struct vring_desc) + sizeof(__u16));
97} 97}
98 98
99static inline unsigned vring_size(unsigned int num) 99static inline unsigned vring_size(unsigned int num)