commit | 903b3a01ba20bb122b7628d45fcef37bc6222f0d | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@fb.com> | Fri Jan 16 14:25:47 2015 -0700 |
committer | Mohamad Ayyash <mkayyash@google.com> | Fri Mar 06 17:58:14 2015 -0800 |
tree | 29ef9ee2197eeba9e6521fe3415f1a95875f849b | |
parent | 159619b828c1c3c74d86e7ea0b7c987e4018ce67 [diff] |
Fix segfault with client/server and minimal output Fixes: bf2921f02651 Reported-by: Ben England <bengland@redhat.com> Signed-off-by: Jens Axboe <axboe@fb.com>
diff --git a/diskutil.c b/diskutil.c index 98ae2fe..52d87f6 100644 --- a/diskutil.c +++ b/diskutil.c
@@ -694,6 +694,9 @@ struct flist_head *entry; struct disk_util *du; + if (!disk_util_mutex) + return; + fio_mutex_down(disk_util_mutex); if (flist_empty(&disk_list)) {