]> Git Repo - qemu.git/commitdiff
block/qcow2-bitmap: fix free_bitmap_clusters
authorVladimir Sementsov-Ogievskiy <[email protected]>
Fri, 8 Jun 2018 10:12:25 +0000 (13:12 +0300)
committerMax Reitz <[email protected]>
Mon, 11 Jun 2018 14:18:45 +0000 (16:18 +0200)
This assert may fail, because bitmap_table is not initialized. Just
drop it, as it's obvious, that bitmap_table_load sets bitmap_table
parameter only when returning zero.

Reported-by: Pavel Butsykin <[email protected]>
Signed-off-by: Vladimir Sementsov-Ogievskiy <[email protected]>
Message-id: 20180608101225[email protected]
Signed-off-by: Max Reitz <[email protected]>
block/qcow2-bitmap.c

index 60d5290f103d2f5fb3dfb59a8149ee6e40355ed0..69485aa1de37ab7de9679b628d2afd08fac50651 100644 (file)
@@ -254,7 +254,6 @@ static int free_bitmap_clusters(BlockDriverState *bs, Qcow2BitmapTable *tb)
 
     ret = bitmap_table_load(bs, tb, &bitmap_table);
     if (ret < 0) {
-        assert(bitmap_table == NULL);
         return ret;
     }
 
This page took 0.027368 seconds and 4 git commands to generate.