aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/virtio/virtio_balloon.c')
-rw-r--r--drivers/virtio/virtio_balloon.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/virtio/virtio_balloon.c b/drivers/virtio/virtio_balloon.c
index 66082c99f6ea..0c5533813cde 100644
--- a/drivers/virtio/virtio_balloon.c
+++ b/drivers/virtio/virtio_balloon.c
@@ -416,6 +416,8 @@ static int init_vqs(struct virtio_balloon *vb)
416 * Prime this virtqueue with one buffer so the hypervisor can 416 * Prime this virtqueue with one buffer so the hypervisor can
417 * use it to signal us later (it can't be broken yet!). 417 * use it to signal us later (it can't be broken yet!).
418 */ 418 */
419 update_balloon_stats(vb);
420
419 sg_init_one(&sg, vb->stats, sizeof vb->stats); 421 sg_init_one(&sg, vb->stats, sizeof vb->stats);
420 if (virtqueue_add_outbuf(vb->stats_vq, &sg, 1, vb, GFP_KERNEL) 422 if (virtqueue_add_outbuf(vb->stats_vq, &sg, 1, vb, GFP_KERNEL)
421 < 0) 423 < 0)