diff options
author | Max Reitz <mreitz@redhat.com> | 2020-02-25 15:31:28 +0100 |
---|---|---|
committer | Michael Roth <mdroth@linux.vnet.ibm.com> | 2020-06-02 10:49:38 -0500 |
commit | 382b9f09bd358f8dd302158b326cbdffba1e2b2d (patch) | |
tree | e0ea0fe7f84aa1c130e0e2e793a930fb30e408e4 /tests/test-image-locking.c | |
parent | 373fd948ab33b6e74b227cd62d4ccc4c17417473 (diff) |
qcow2: Fix alloc_cluster_abort() for pre-existing clusters
handle_alloc() reuses preallocated zero clusters. If anything goes
wrong during the data write, we do not change their L2 entry, so we
must not let qcow2_alloc_cluster_abort() free them.
Fixes: 8b24cd141549b5b264baeddd4e72902cfb5de23b
Cc: qemu-stable@nongnu.org
Signed-off-by: Max Reitz <mreitz@redhat.com>
Message-Id: <20200225143130.111267-2-mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
(cherry picked from commit 3ede935fdbbd5f7b24b4724bbfb8938acb5956d8)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Diffstat (limited to 'tests/test-image-locking.c')
0 files changed, 0 insertions, 0 deletions