diff options
| author | Greg Kurz <[email protected]> | 2020-10-03 10:02:03 +0000 |
|---|---|---|
| committer | Michael S. Tsirkin <[email protected]> | 2020-10-04 07:44:25 +0000 |
| commit | 71878fa46c7e3b40fa7b3f1b6e4ba3f92f1ac359 (patch) | |
| tree | 4ca2925d23f07106e6620943448cd3cb6b9a4ac0 /drivers/platform/surface/aggregator/ssh_parser.c | |
| parent | vhost: Don't call access_ok() when using IOTLB (diff) | |
| download | kernel-71878fa46c7e3b40fa7b3f1b6e4ba3f92f1ac359.tar.gz kernel-71878fa46c7e3b40fa7b3f1b6e4ba3f92f1ac359.zip | |
vhost: Use vhost_get_used_size() in vhost_vring_set_addr()
The open-coded computation of the used size doesn't take the event
into account when the VIRTIO_RING_F_EVENT_IDX feature is present.
Fix that by using vhost_get_used_size().
Fixes: 8ea8cf89e19a ("vhost: support event index")
Cc: [email protected]
Signed-off-by: Greg Kurz <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Michael S. Tsirkin <[email protected]>
Diffstat (limited to 'drivers/platform/surface/aggregator/ssh_parser.c')
0 files changed, 0 insertions, 0 deletions
