From: Felipe Franciosi Date: Mon, 14 Nov 2016 14:16:15 +0000 (-0800) Subject: virtio_ring: fix description of virtqueue_get_buf X-Git-Tag: v4.14-rc1~1849^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0c7eaf5930e145b9f1a0121bd5813a05b0fc77f2;p=platform%2Fkernel%2Flinux-rpi.git 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: Felipe Franciosi Signed-off-by: Michael S. Tsirkin --- diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c index d2863c3..409aeaa4 100644 --- a/drivers/virtio/virtio_ring.c +++ b/drivers/virtio/virtio_ring.c @@ -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.