diff options
Diffstat (limited to 'drivers/vhost/test.c')
-rw-r--r-- | drivers/vhost/test.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/vhost/test.c b/drivers/vhost/test.c index be65414d5bb1..1ee45bc85f67 100644 --- a/drivers/vhost/test.c +++ b/drivers/vhost/test.c | |||
@@ -282,7 +282,9 @@ static long vhost_test_ioctl(struct file *f, unsigned int ioctl, | |||
282 | return vhost_test_reset_owner(n); | 282 | return vhost_test_reset_owner(n); |
283 | default: | 283 | default: |
284 | mutex_lock(&n->dev.mutex); | 284 | mutex_lock(&n->dev.mutex); |
285 | r = vhost_dev_ioctl(&n->dev, ioctl, arg); | 285 | r = vhost_dev_ioctl(&n->dev, ioctl, argp); |
286 | if (r == -ENOIOCTLCMD) | ||
287 | r = vhost_vring_ioctl(&n->dev, ioctl, argp); | ||
286 | vhost_test_flush(n); | 288 | vhost_test_flush(n); |
287 | mutex_unlock(&n->dev.mutex); | 289 | mutex_unlock(&n->dev.mutex); |
288 | return r; | 290 | return r; |