Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0c7eaf59 authored by Felipe Franciosi's avatar Felipe Franciosi Committed by Michael S. Tsirkin
Browse files

virtio_ring: fix description of virtqueue_get_buf



The device (not the driver) populates the used ring and includes the len
of how much data was written.

Signed-off-by: default avatarFelipe Franciosi <felipe@nutanix.com>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent b9fd06d0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -649,7 +649,7 @@ static inline bool more_used(const struct vring_virtqueue *vq)
 * @vq: the struct virtqueue we're talking about.
 * @len: the length written into the buffer
 *
 * If the driver wrote data into the buffer, @len will be set to the
 * If the device wrote data into the buffer, @len will be set to the
 * amount written.  This means you don't need to clear the buffer
 * beforehand to ensure there's no data leakage in the case of short
 * writes.