iolog: fix use-after-free of iolog_flush_data
authorJens Axboe <axboe@fb.com>
Thu, 5 May 2016 14:48:09 +0000 (08:48 -0600)
committerJens Axboe <axboe@fb.com>
Thu, 5 May 2016 14:48:09 +0000 (08:48 -0600)
commit4e2d9699d87459cc0aeff80cb135af2db5f3bd84
treed376755af9878ca4469f097294606a2f8e1307e2
parent2078c1369f993b4d760d3fe1f90cb6ffa4389fe5
iolog: fix use-after-free of iolog_flush_data

If we run with compressed logs, drop_data_unlock() will free 'data'
before killing the condvar and mutex.

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