aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/virtio/virtio_balloon.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/virtio/virtio_balloon.c')
-rw-r--r--drivers/virtio/virtio_balloon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/virtio/virtio_balloon.c b/drivers/virtio/virtio_balloon.c
index 26b278264796..39789232646d 100644
--- a/drivers/virtio/virtio_balloon.c
+++ b/drivers/virtio/virtio_balloon.c
@@ -84,7 +84,7 @@ static void tell_host(struct virtio_balloon *vb, struct virtqueue *vq)
84 init_completion(&vb->acked); 84 init_completion(&vb->acked);
85 85
86 /* We should always be able to add one buffer to an empty queue. */ 86 /* We should always be able to add one buffer to an empty queue. */
87 if (vq->vq_ops->add_buf(vq, &sg, 1, 0, vb) != 0) 87 if (vq->vq_ops->add_buf(vq, &sg, 1, 0, vb) < 0)
88 BUG(); 88 BUG();
89 vq->vq_ops->kick(vq); 89 vq->vq_ops->kick(vq);
90 90