Commit 2342d6a6 authored by Heinz Graalfs's avatar Heinz Graalfs Committed by Rusty Russell

virtio_ring: adapt to notify() returning bool

Correct if statement to check for bool returned by notify()
(introduced in 5b1bf7cb).
Signed-off-by: default avatarHeinz Graalfs <graalfs@linux.vnet.ibm.com>
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 047b9b94
......@@ -441,7 +441,7 @@ bool virtqueue_notify(struct virtqueue *_vq)
return false;
/* Prod other side to tell it about changes. */
if (vq->notify(_vq) < 0) {
if (!vq->notify(_vq)) {
vq->broken = true;
return false;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment