qemu-e2k/block
Stefan Hajnoczi 39ba3bf69c qcow2: fix new_blocks double-free in alloc_refcount_block()
Commit de82815db1 ("qcow2: Handle failure
for potentially large allocations") introduced a double-free of
new_blocks in the alloc_refcount_block() error path.

The qemu-iotests qcow2 026 test case was failing because qemu-io
segfaulted.

Make sure new_blocks is NULL after we free it the first time.

Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2014-08-15 18:03:26 +01:00
..
archipelago.c block/archipelago: Add support for creating images 2014-08-15 15:07:14 +02:00
backup.c
blkdebug.c blkdebug: report errors on flush too 2014-08-15 18:03:11 +01:00
blkverify.c
bochs.c bochs: Handle failure for potentially large allocations 2014-08-15 15:07:15 +02:00
cloop.c cloop: Handle failure for potentially large allocations 2014-08-15 15:07:15 +02:00
commit.c
cow.c
curl.c curl: Handle failure for potentially large allocations 2014-08-15 15:07:15 +02:00
dmg.c dmg: Handle failure for potentially large allocations 2014-08-15 15:07:15 +02:00
gluster.c
iscsi.c iscsi: Handle failure for potentially large allocations 2014-08-15 15:07:15 +02:00
linux-aio.c
Makefile.objs block: Support Archipelago as a QEMU block backend 2014-08-15 15:07:14 +02:00
mirror.c mirror: Handle failure for potentially large allocations 2014-08-15 15:07:16 +02:00
nbd-client.c
nbd-client.h
nbd.c
nfs.c nfs: Handle failure for potentially large allocations 2014-08-15 15:07:15 +02:00
parallels.c parallels: 2TB+ parallels images support 2014-08-15 18:03:13 +01:00
qapi.c qemu-img info: show nocow info 2014-08-15 15:07:14 +02:00
qcow2-cache.c qcow2: Handle failure for potentially large allocations 2014-08-15 15:07:15 +02:00
qcow2-cluster.c qcow2: Catch !*host_offset for data allocation 2014-08-15 15:07:16 +02:00
qcow2-refcount.c qcow2: fix new_blocks double-free in alloc_refcount_block() 2014-08-15 18:03:26 +01:00
qcow2-snapshot.c qcow2: Handle failure for potentially large allocations 2014-08-15 15:07:15 +02:00
qcow2.c qcow2: Handle failure for potentially large allocations 2014-08-15 15:07:15 +02:00
qcow2.h
qcow.c qcow1: Handle failure for potentially large allocations 2014-08-15 15:07:15 +02:00
qed-check.c qed: Handle failure for potentially large allocations 2014-08-15 15:07:15 +02:00
qed-cluster.c
qed-gencb.c
qed-l2-cache.c
qed-table.c
qed.c qed: Handle failure for potentially large allocations 2014-08-15 15:07:15 +02:00
qed.h
quorum.c
raw_bsd.c block: Add Error argument to bdrv_refresh_limits() 2014-07-18 13:18:43 +01:00
raw-aio.h
raw-posix.c raw-posix: Handle failure for potentially large allocations 2014-08-15 15:07:15 +02:00
raw-win32.c
rbd.c rbd: Handle failure for potentially large allocations 2014-08-15 15:07:16 +02:00
sheepdog.c
snapshot.c
ssh.c
stream.c block: Add Error argument to bdrv_refresh_limits() 2014-07-18 13:18:43 +01:00
vdi.c vdi: Handle failure for potentially large allocations 2014-08-15 15:07:16 +02:00
vhdx-endian.c block: VHDX endian fixes 2014-08-15 15:07:14 +02:00
vhdx-log.c vhdx: Handle failure for potentially large allocations 2014-08-15 15:07:16 +02:00
vhdx.c vhdx: Handle failure for potentially large allocations 2014-08-15 15:07:16 +02:00
vhdx.h block: VHDX endian fixes 2014-08-15 15:07:14 +02:00
vmdk.c vmdk: Handle failure for potentially large allocations 2014-08-15 15:07:16 +02:00
vpc.c vpc: Handle failure for potentially large allocations 2014-08-15 15:07:16 +02:00
vvfat.c
win32-aio.c raw-win32: Handle failure for potentially large allocations 2014-08-15 15:07:16 +02:00