iolog: fix potential oops in iolog disabling
authorJens Axboe <axboe@fb.com>
Fri, 20 May 2016 20:36:34 +0000 (14:36 -0600)
committerJens Axboe <axboe@fb.com>
Fri, 20 May 2016 20:36:34 +0000 (14:36 -0600)
commit2ab71dc4d39e29764f0f80a3559a0119247e1eb1
tree1a5b9e4370c621d38aa2857c55eb7f9c9d496ff2
parenta9afa45a6162ef29fde55e7e992fa5f574c4e4d5
iolog: fix potential oops in iolog disabling

Do it in the function, not in the caller. The log may be NULL.

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