Skip to content
Snippets Groups Projects
Commit 2c0349ec authored by Michael S. Tsirkin's avatar Michael S. Tsirkin
Browse files

virtio_fs: convert to LE accessors


Virtio fs is modern-only. Use LE accessors for config space.

Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent b0255840
No related branches found
No related tags found
No related merge requests found
......@@ -606,8 +606,8 @@ static int virtio_fs_setup_vqs(struct virtio_device *vdev,
unsigned int i;
int ret = 0;
virtio_cread(vdev, struct virtio_fs_config, num_request_queues,
&fs->num_request_queues);
virtio_cread_le(vdev, struct virtio_fs_config, num_request_queues,
&fs->num_request_queues);
if (fs->num_request_queues == 0)
return -EINVAL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment