]> git.ipfire.org Git - thirdparty/qemu.git/commit
qcow2: Fix error handling in qcow2_grow_l1_table
authorKevin Wolf <kwolf@redhat.com>
Wed, 20 Jan 2010 14:02:58 +0000 (15:02 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 27 Jan 2010 13:51:02 +0000 (07:51 -0600)
commitcb2ae96bf6bfb50d5002578d14da6d84ebc5ecb2
treed885cea11f33a5c7b96636b89628fa693f021390
parent848f874ca1f0910b092cb9b166548572ef83177b
qcow2: Fix error handling in qcow2_grow_l1_table

Return the appropriate error value instead of always using EIO. Don't free the
L1 table on errors, we still need it.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
(cherry picked from commit fb8fa77ce143b0911658b4bcbe641c869e26ceee)
block/qcow2-cluster.c