qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 2/3] qcow2: Don't ignore failure to clear autoclear


From: Kevin Wolf
Subject: [Qemu-devel] [PATCH 2/3] qcow2: Don't ignore failure to clear autoclear flags
Date: Mon, 14 May 2012 17:44:16 +0200

Signed-off-by: Kevin Wolf <address@hidden>
---
 block/qcow2.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/block/qcow2.c b/block/qcow2.c
index 3bae2d8..655799c 100644
--- a/block/qcow2.c
+++ b/block/qcow2.c
@@ -300,7 +300,10 @@ static int qcow2_open(BlockDriverState *bs, int flags)
 
     if (!bs->read_only && s->autoclear_features != 0) {
         s->autoclear_features = 0;
-        qcow2_update_header(bs);
+        ret = qcow2_update_header(bs);
+        if (ret < 0) {
+            goto fail;
+        }
     }
 
     /* Check support for various header values */
-- 
1.7.6.5




reply via email to

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