Displaying 1 result from an estimated 1 matches for "26d0dff069f0".
2018 Feb 20
0
[4.4-stable 12/22] virtio_balloon: prevent uninitialized variable use
...hael S. Tsirkin <mst at redhat.com>
[arnd: backported to 4.4]
Signed-off-by: Arnd Bergmann <arnd at arndb.de>
---
drivers/virtio/virtio_balloon.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/virtio/virtio_balloon.c b/drivers/virtio/virtio_balloon.c
index 01d15dca940e..26d0dff069f0 100644
--- a/drivers/virtio/virtio_balloon.c
+++ b/drivers/virtio/virtio_balloon.c
@@ -239,12 +239,15 @@ static void update_balloon_stats(struct virtio_balloon *vb)
all_vm_events(events);
si_meminfo(&i);
+
+#ifdef CONFIG_VM_EVENT_COUNTERS
update_stat(vb, idx++, VIRTIO_BALLOON_S_SWAP_IN,...