diff options
author | 2019-08-28 13:36:59 +0800 | |
---|---|---|
committer | 2019-09-04 06:21:17 -0400 | |
commit | 93d2c4de8d8129b97ee1e1a222aedb0719d2fcd9 (patch) | |
tree | c0d85c6e1b609d003295639b9a96e598da5dae82 /drivers/vhost | |
parent | Linux 5.3-rc7 (diff) | |
download | linux-93d2c4de8d8129b97ee1e1a222aedb0719d2fcd9.tar.gz linux-93d2c4de8d8129b97ee1e1a222aedb0719d2fcd9.tar.bz2 linux-93d2c4de8d8129b97ee1e1a222aedb0719d2fcd9.zip |
vhost/test: fix build for vhost test
Since below commit, callers need to specify the iov_limit in
vhost_dev_init() explicitly.
Fixes: b46a0bf78ad7 ("vhost: fix OOB in get_rx_bufs()")
Cc: stable@vger.kernel.org
Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'drivers/vhost')
-rw-r--r-- | drivers/vhost/test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/vhost/test.c b/drivers/vhost/test.c index 9e90e969af55..ac4f762c4f65 100644 --- a/drivers/vhost/test.c +++ b/drivers/vhost/test.c @@ -115,7 +115,7 @@ static int vhost_test_open(struct inode *inode, struct file *f) dev = &n->dev; vqs[VHOST_TEST_VQ] = &n->vqs[VHOST_TEST_VQ]; n->vqs[VHOST_TEST_VQ].handle_kick = handle_vq_kick; - vhost_dev_init(dev, vqs, VHOST_TEST_VQ_MAX); + vhost_dev_init(dev, vqs, VHOST_TEST_VQ_MAX, UIO_MAXIOV); f->private_data = n; |