Skip to contentSkip to conversation

virtio-balloon: unref the memory region before continuing

PATCH New Tiwei Bie 1 participant 1 message Jan 25, 2018

lore
Share & tools
lore

Tiwei Bie

author
#0 lore raw

PATCH 1/1 virtio-balloon: unref the memory region before continuing

---
 hw/virtio/virtio-balloon.c | 1 +
 1 file changed, 1 insertion(+)
hw/virtio/virtio-balloon.c +1 -0
index 14e08d20d0..f2104bfcef 100644
@@ -234,6 +234,7 @@ static void virtio_balloon_handle_output(VirtIODevice *vdev, VirtQueue *vq)
                 memory_region_is_rom(section.mr) ||
                 memory_region_is_romd(section.mr)) {
                 trace_virtio_balloon_bad_addr(pa);
+                memory_region_unref(section.mr);
                 continue;
             }
 
Signature · 1 line
2.13.3