Fix potential crash in terminate_threads()
authorJens Axboe <jens.axboe@oracle.com>
Sat, 1 Mar 2008 14:25:24 +0000 (15:25 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Sat, 1 Mar 2008 14:25:24 +0000 (15:25 +0100)
commitf63f7f3bbc49c72ee06f351bf3a7312df32f9e3c
treeadffda07833fe96e83771527dd94007e84d80b46
parent6ac7a3310ff8c21bb563939c8accec8c0d609109
Fix potential crash in terminate_threads()

td->io_ops can be NULL, if the thread is already gone. So copy the
pointer and check before dereferencing it.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
fio.c