[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] qcow: initialize coroutine mutex
From: |
Scott Wood |
Subject: |
[Qemu-devel] [PATCH] qcow: initialize coroutine mutex |
Date: |
Thu, 11 Aug 2011 16:27:15 -0500 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
commit 52b8eb60132b27ad53476490e9d7579003390cfa added a mutex,
but never initialized it. This caused a segfault.
Reported-by: Alexander Graf <address@hidden>
Signed-off-by: Scott Wood <address@hidden>
---
block/qcow.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/block/qcow.c b/block/qcow.c
index 6447c2a..e46f15f 100644
--- 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:
--
1.7.6
- [Qemu-devel] [PATCH] qcow: initialize coroutine mutex,
Scott Wood <=