Skip to content

Commit 93d2c4d

Browse files
Tiwei Biemstsirkin
authored andcommitted
vhost/test: fix build for vhost test
Since below commit, callers need to specify the iov_limit in vhost_dev_init() explicitly. Fixes: b46a0bf ("vhost: fix OOB in get_rx_bufs()") Cc: [email protected] Signed-off-by: Tiwei Bie <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]> Acked-by: Jason Wang <[email protected]>
1 parent 089cf7f commit 93d2c4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/vhost/test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ static int vhost_test_open(struct inode *inode, struct file *f)
115115
dev = &n->dev;
116116
vqs[VHOST_TEST_VQ] = &n->vqs[VHOST_TEST_VQ];
117117
n->vqs[VHOST_TEST_VQ].handle_kick = handle_vq_kick;
118-
vhost_dev_init(dev, vqs, VHOST_TEST_VQ_MAX);
118+
vhost_dev_init(dev, vqs, VHOST_TEST_VQ_MAX, UIO_MAXIOV);
119119

120120
f->private_data = n;
121121

0 commit comments

Comments
 (0)