[5007] qcow2: Make sure to return an error when L2 table loading fails
Revision: 5007
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5007 Author: aliguori Date: 2008-08-14 18:11:00 +0000 (Thu, 14 Aug 2008)
Log Message:
-----------
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 <[email protected]>
Modified Paths:
--------------
trunk/block-qcow2.c
Modified: trunk/block-qcow2.c
===================================================================
block-qcow2.c +1 -1
@@ -669,7 +669,7 @@ l2_offset &= ~QCOW_OFLAG_COPIED ; l2_table =l2_load (bs, l2_offset);if (l2_table ==NULL ) - goto out; +return 0 ;/* find the cluster offset for the given disk offset */