qcow2: Fix error handling in qcow2_grow_l1_table
commitfb8fa77ce143b0911658b4bcbe641c869e26ceee
authorKevin Wolf <kwolf@redhat.com>
Wed, 20 Jan 2010 14:02:58 +0000 (20 15:02 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 26 Jan 2010 20:59:19 +0000 (26 14:59 -0600)
tree4bc99828939fa91d2389ab724043ee11f0261a76
parent81a1b45ac7a3a2d4536b3827defdcbabdb221051
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>
block/qcow2-cluster.c