diff options
Diffstat (limited to 'drivers/vhost')
-rw-r--r-- | drivers/vhost/vhost.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index 750effe0f98b..c6fb8e968f21 100644 --- a/drivers/vhost/vhost.c +++ b/drivers/vhost/vhost.c | |||
@@ -806,7 +806,7 @@ static unsigned get_indirect(struct vhost_dev *dev, struct vhost_virtqueue *vq, | |||
806 | count = indirect->len / sizeof desc; | 806 | count = indirect->len / sizeof desc; |
807 | /* Buffers are chained via a 16 bit next field, so | 807 | /* Buffers are chained via a 16 bit next field, so |
808 | * we can have at most 2^16 of these. */ | 808 | * we can have at most 2^16 of these. */ |
809 | if (count > USHORT_MAX + 1) { | 809 | if (count > USHRT_MAX + 1) { |
810 | vq_err(vq, "Indirect buffer length too big: %d\n", | 810 | vq_err(vq, "Indirect buffer length too big: %d\n", |
811 | indirect->len); | 811 | indirect->len); |
812 | return -E2BIG; | 812 | return -E2BIG; |