mirror of
https://github.com/qemu/qemu.git
synced 2025-08-02 21:19:48 +00:00
qcow2: Fix error return code in qcow2_alloc_cluster_link_l2
Fix qcow2_alloc_cluster_link_l2 to return the real error code like it does in all other error cases. Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
79a31189d4
commit
c835d00fc8
@ -687,8 +687,8 @@ int qcow2_alloc_cluster_link_l2(BlockDriverState *bs, QCowL2Meta *m)
|
|||||||
(i << s->cluster_bits)) | QCOW_OFLAG_COPIED);
|
(i << s->cluster_bits)) | QCOW_OFLAG_COPIED);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (write_l2_entries(s, l2_table, l2_offset, l2_index, m->nb_clusters) < 0) {
|
ret = write_l2_entries(s, l2_table, l2_offset, l2_index, m->nb_clusters);
|
||||||
ret = -1;
|
if (ret < 0) {
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user