diff options
Diffstat (limited to 'tools/virtio/virtio_test.c')
-rw-r--r-- | tools/virtio/virtio_test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/virtio/virtio_test.c b/tools/virtio/virtio_test.c index 059cb723f6a7..bdb71a26ae35 100644 --- a/tools/virtio/virtio_test.c +++ b/tools/virtio/virtio_test.c | |||
@@ -172,7 +172,8 @@ static void run_test(struct vdev_info *dev, struct vq_info *vq, | |||
172 | GFP_ATOMIC); | 172 | GFP_ATOMIC); |
173 | if (likely(r == 0)) { | 173 | if (likely(r == 0)) { |
174 | ++started; | 174 | ++started; |
175 | virtqueue_kick(vq->vq); | 175 | if (unlikely(!virtqueue_kick(vq->vq)) |
176 | r = -1; | ||
176 | } | 177 | } |
177 | } else | 178 | } else |
178 | r = -1; | 179 | r = -1; |