mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
virtio_fs: convert to LE accessors
Virtio fs is modern-only. Use LE accessors for config space. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
b025584098
commit
2c0349ec1a
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user