]> Git Repo - qemu.git/blobdiff - exec.c
virtio-input: retrieve EV_LED host config bits
[qemu.git] / exec.c
diff --git a/exec.c b/exec.c
index f46e5968189387a8bcd35d0d2751149eaa1762e2..c4f9036184d82b8e3cce4e493caa068e0217d2ee 100644 (file)
--- a/exec.c
+++ b/exec.c
@@ -1773,6 +1773,10 @@ static void reclaim_ramblock(RAMBlock *block)
 
 void qemu_ram_free(RAMBlock *block)
 {
+    if (!block) {
+        return;
+    }
+
     qemu_mutex_lock_ramlist();
     QLIST_REMOVE_RCU(block, next);
     ram_list.mru_block = NULL;
This page took 0.019113 seconds and 4 git commands to generate.