mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
qcow: initialize coroutine mutex
commit 52b8eb6013
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>
This commit is contained in:
parent
d57237f291
commit
de33b1f3dd
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue