Commit 768706a52fae029eeabd338d64fcf3d41d2ac6ff
1 parent
095a9c58
qcow2: Make sure to return an error when L2 table loading fails
This was suggested by Kevin Wolf since this is, in fact, an error condition. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5007 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
1 deletions
block-qcow2.c
... | ... | @@ -669,7 +669,7 @@ static uint64_t get_cluster_offset(BlockDriverState *bs, |
669 | 669 | l2_offset &= ~QCOW_OFLAG_COPIED; |
670 | 670 | l2_table = l2_load(bs, l2_offset); |
671 | 671 | if (l2_table == NULL) |
672 | - goto out; | |
672 | + return 0; | |
673 | 673 | |
674 | 674 | /* find the cluster offset for the given disk offset */ |
675 | 675 | ... | ... |