diff options
author | Jens Axboe <axboe@fb.com> | 2015-01-16 14:25:47 -0700 |
---|---|---|
committer | Mohamad Ayyash <mkayyash@google.com> | 2015-03-06 17:58:14 -0800 |
commit | 903b3a01ba20bb122b7628d45fcef37bc6222f0d (patch) | |
tree | 29ef9ee2197eeba9e6521fe3415f1a95875f849b | |
parent | 159619b828c1c3c74d86e7ea0b7c987e4018ce67 (diff) | |
download | fio-903b3a01ba20bb122b7628d45fcef37bc6222f0d.tar.gz |
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>
-rw-r--r-- | diskutil.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -694,6 +694,9 @@ void show_disk_util(int terse, struct json_object *parent) struct flist_head *entry; struct disk_util *du; + if (!disk_util_mutex) + return; + fio_mutex_down(disk_util_mutex); if (flist_empty(&disk_list)) { |