diff options
Diffstat (limited to 'drivers/net/virtio/virtio_ring.h')
-rw-r--r-- | drivers/net/virtio/virtio_ring.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/virtio/virtio_ring.h b/drivers/net/virtio/virtio_ring.h index 447760a8..fcecc161 100644 --- a/drivers/net/virtio/virtio_ring.h +++ b/drivers/net/virtio/virtio_ring.h @@ -79,7 +79,7 @@ struct vring_used_elem { struct vring_used { uint16_t flags; - uint16_t idx; + volatile uint16_t idx; struct vring_used_elem ring[0]; }; |