diff mbox

[v2,10/13] block: Assert that bdrv_release_dirty_bitmap succeeded

Message ID 1453270306-16608-11-git-send-email-famz@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Fam Zheng Jan. 20, 2016, 6:11 a.m. UTC
This makes sure we don't leak a dirty bitmap in any case.

Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
---
 block/dirty-bitmap.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/block/dirty-bitmap.c b/block/dirty-bitmap.c
index de143f1..ec13d38 100644
--- a/block/dirty-bitmap.c
+++ b/block/dirty-bitmap.c
@@ -298,6 +298,7 @@  void bdrv_release_dirty_bitmap(BlockDriverState *bs, BdrvDirtyBitmap *bitmap)
             return;
         }
     }
+    abort();
 }
 
 void bdrv_disable_dirty_bitmap(BdrvDirtyBitmap *bitmap)