projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d57237f
)
qcow: initialize coroutine mutex
author
Scott Wood
<scottwood@freescale.com>
Thu, 11 Aug 2011 21:27:15 +0000
(16:27 -0500)
committer
Kevin Wolf
<kwolf@redhat.com>
Tue, 23 Aug 2011 12:15:17 +0000
(14:15 +0200)
commit
52b8eb60132b27ad53476490e9d7579003390cfa
added a mutex,
but never initialized it. This caused a segfault.
Reported-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow.c
patch
|
blob
|
history
diff --git
a/block/qcow.c
b/block/qcow.c
index e155d3c002f32832f60a0ff6750c01293d187834..8f2bdfda51f0a241791dc7b2a2bfd3fd5f8e6f49 100644
(file)
--- a/
block/qcow.c
+++ b/
block/qcow.c
@@
-159,6
+159,8
@@
static int qcow_open(BlockDriverState *bs, int flags)
goto fail;
bs->backing_file[len] = '\0';
}
+
+ qemu_co_mutex_init(&s->lock);
return 0;
fail: