qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [5007] qcow2: Make sure to return an error when L2 table lo


From: Anthony Liguori
Subject: [Qemu-devel] [5007] qcow2: Make sure to return an error when L2 table loading fails
Date: Thu, 14 Aug 2008 18:11:00 +0000

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 <address@hidden>

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 */
 






reply via email to

[Prev in Thread] Current Thread [Next in Thread]