diff options
author | Angus Chen <angus.chen@jaguarmicro.com> | 2022-11-01 14:16:54 +0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2022-12-28 13:28:09 +0300 |
commit | b66ead2d0ecac00c3a06a6218af5411cb5fcb5d5 (patch) | |
tree | 8c06e43be20ab94bab2d49bb9671b085d919c805 /tools/virtio | |
parent | a9f0a19ff7700cc8a30db2496f40d18490dcb9df (diff) | |
download | linux-b66ead2d0ecac00c3a06a6218af5411cb5fcb5d5.tar.xz |
virtio_pci: modify ENOENT to EINVAL
Virtio_crypto use max_data_queues+1 to setup vqs,
we use vp_modern_get_num_queues to protect the vq range in setup_vq.
We could enter index >= vp_modern_get_num_queues(mdev) in setup_vq
if common->num_queues is not set well,and it return -ENOENT.
It is better to use -EINVAL instead.
Signed-off-by: Angus Chen <angus.chen@jaguarmicro.com>
Message-Id: <20221101111655.1947-1-angus.chen@jaguarmicro.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'tools/virtio')
0 files changed, 0 insertions, 0 deletions