projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6797590
)
virtio_test: verify if virtqueue_kick() succeeded
author
Heinz Graalfs
<graalfs@linux.vnet.ibm.com>
Mon, 28 Oct 2013 23:10:11 +0000
(09:40 +1030)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Tue, 29 Oct 2013 00:58:16 +0000
(11:28 +1030)
Verify if a host kick succeeded by checking return value of virtqueue_kick().
Signed-off-by: Heinz Graalfs <graalfs@linux.vnet.ibm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
tools/virtio/virtio_test.c
patch
|
blob
|
blame
|
history
diff --git
a/tools/virtio/virtio_test.c
b/tools/virtio/virtio_test.c
index 059cb723f6a7757d31377bd1dd040e5f2a457326..bdb71a26ae35d7d058f87fa94e6bf2e39e558015 100644
(file)
--- 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,
GFP_ATOMIC);
if (likely(r == 0)) {
++started;
- virtqueue_kick(vq->vq);
+ if (unlikely(!virtqueue_kick(vq->vq))
+ r = -1;
}
} else
r = -1;