qcow: initialize coroutine mutex
PATCH 1/1 qcow: initialize coroutine mutex
commit 52b8eb60132b27ad53476490e9d7579003390cfa added a mutex, but never initialized it. This caused a segfault.
Reported-by Alexander Graf <[email protected]>
Signed-off-by Scott Wood <[email protected]>
--- block/qcow.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
block/qcow.c +2 -0
@@ -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:
Signature · 1 line
1.7.6
Kevin Wolf
AppliedAm 11.08.2011 23:27, schrieb Scott Wood:
Quoted 5 lines
commit
52b8eb60132b27ad53476490e9d7579003390cfaadded a mutex, but never initialized it. This caused a segfault.Reported-by Alexander Graf <[email protected]>Signed-off-by Scott Wood <[email protected]>
Thanks, applied to the block branch.
Kevin