diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2013-03-17 22:52:18 -0400 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2013-03-19 23:30:41 -0400 |
commit | 73640c991e2f2804939af70567b23e4c54b7c266 (patch) | |
tree | 40800f0b2ddd54ef17160879bada9d1e16a4ce01 /drivers/vhost/test.c | |
parent | 29266e2e29f1f87b93321e56812f9fb16f91cb6d (diff) |
tools/virtio: fix build for 3.8
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
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 91d6f060aade..329d3021d059 100644 --- a/drivers/vhost/test.c +++ b/drivers/vhost/test.c | |||
@@ -275,7 +275,9 @@ static long vhost_test_ioctl(struct file *f, unsigned int ioctl, | |||
275 | return vhost_test_reset_owner(n); | 275 | return vhost_test_reset_owner(n); |
276 | default: | 276 | default: |
277 | mutex_lock(&n->dev.mutex); | 277 | mutex_lock(&n->dev.mutex); |
278 | r = vhost_dev_ioctl(&n->dev, ioctl, arg); | 278 | r = vhost_dev_ioctl(&n->dev, ioctl, argp); |
279 | if (r == -ENOIOCTLCMD) | ||
280 | r = vhost_vring_ioctl(&n->dev, ioctl, argp); | ||
279 | vhost_test_flush(n); | 281 | vhost_test_flush(n); |
280 | mutex_unlock(&n->dev.mutex); | 282 | mutex_unlock(&n->dev.mutex); |
281 | return r; | 283 | return r; |