stat: don't trust per_unit_log() if log is NULL
authorJens Axboe <axboe@fb.com>
Mon, 22 Aug 2016 19:23:29 +0000 (13:23 -0600)
committerJens Axboe <axboe@fb.com>
Mon, 22 Aug 2016 19:23:29 +0000 (13:23 -0600)
commit9e4438fecd1d92b4d5221f35d5e73546f52c6ebf
treed79fc9280ca6c4016766b195f629c1e4f0d7a53f
parenta86f6d07f12141a32ccad2007d4568e612e0df10
stat: don't trust per_unit_log() if log is NULL

We return 'false' for that case, but it's not really false. Fixes
a sigbus error on sparc, without logging.

Signed-off-by: Jens Axboe <axboe@fb.com>
stat.c