aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/virtio/virtio_ring.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c
index f47777582ce5..28b5338fff71 100644
--- a/drivers/virtio/virtio_ring.c
+++ b/drivers/virtio/virtio_ring.c
@@ -441,7 +441,7 @@ bool virtqueue_notify(struct virtqueue *_vq)
441 return false; 441 return false;
442 442
443 /* Prod other side to tell it about changes. */ 443 /* Prod other side to tell it about changes. */
444 if (vq->notify(_vq) < 0) { 444 if (!vq->notify(_vq)) {
445 vq->broken = true; 445 vq->broken = true;
446 return false; 446 return false;
447 } 447 }