qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [5007] qcow2: Make sure to return an error when L2 table loading fails
@ 2008-08-14 18:11 Anthony Liguori
  0 siblings, 0 replies; only message in thread
From: Anthony Liguori @ 2008-08-14 18:11 UTC (permalink / raw)
  To: qemu-devel

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 <aliguori@us.ibm.com>

Modified Paths:
--------------
    trunk/block-qcow2.c

Modified: trunk/block-qcow2.c
===================================================================
--- trunk/block-qcow2.c	2008-08-14 18:10:28 UTC (rev 5006)
+++ trunk/block-qcow2.c	2008-08-14 18:11:00 UTC (rev 5007)
@@ -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 */
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-08-14 18:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-14 18:11 [Qemu-devel] [5007] qcow2: Make sure to return an error when L2 table loading fails Anthony Liguori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).