projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99b5beb
)
qcow2: Don't ignore failure to clear autoclear flags
author
Kevin Wolf
<kwolf@redhat.com>
Fri, 11 May 2012 13:33:03 +0000
(15:33 +0200)
committer
Kevin Wolf
<kwolf@redhat.com>
Mon, 14 May 2012 15:02:19 +0000
(17:02 +0200)
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2.c
patch
|
blob
|
history
diff --git
a/block/qcow2.c
b/block/qcow2.c
index 3bae2d837e754427afe8e1ceef795c41bec52b97..655799c6a0fa89dc03274d3b66d60175917963fd 100644
(file)
--- 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 */