diff options
author | Roman Kagan <rvkagan@yandex-team.ru> | 2021-11-11 18:33:49 +0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2022-01-07 05:19:55 -0500 |
commit | 6dcae534e82520aa2280009de4b78a19059e8bbb (patch) | |
tree | 8e6368088cfc00562940ceed16dd1794edccd7f2 /hw/virtio/vhost.c | |
parent | 666265036fec3fd3eed2d55ae828c915a084a1d6 (diff) | |
download | qemu-6dcae534e82520aa2280009de4b78a19059e8bbb.zip qemu-6dcae534e82520aa2280009de4b78a19059e8bbb.tar.gz qemu-6dcae534e82520aa2280009de4b78a19059e8bbb.tar.bz2 |
vhost-backend: avoid overflow on memslots_limit
Fix the (hypothetical) potential problem when the value parsed out of
the vhost module parameter in sysfs overflows the return value from
vhost_kernel_memslots_limit.
Signed-off-by: Roman Kagan <rvkagan@yandex-team.ru>
Message-Id: <20211111153354.18807-6-rvkagan@yandex-team.ru>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/virtio/vhost.c')
0 files changed, 0 insertions, 0 deletions