work structure in struct flush_work must be initialized with zero so that work->attr is WORK_SIMPLE. Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp> --- sheep/object_cache.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/sheep/object_cache.c b/sheep/object_cache.c index 533769c..e100634 100644 --- a/sheep/object_cache.c +++ b/sheep/object_cache.c @@ -881,7 +881,7 @@ int object_cache_flush_vdi(struct request *req) return SD_RES_SUCCESS; if (sys->async_flush) { - struct flush_work *fw = xmalloc(sizeof(*fw)); + struct flush_work *fw = xzalloc(sizeof(*fw)); fw->work.fn = object_cache_flush_vdi_fn; fw->work.done = object_cache_flush_vdi_done; -- 1.7.2.5 |