From: Jens Axboe Date: Mon, 26 May 2008 14:38:28 +0000 (+0200) Subject: Fix out-of-band deref of (potentially) gone threads structure X-Git-Tag: fio-1.21-rc1~3 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=6c28f0bb768f30673a7c15d9ab493ed2dfe4d5e3;hp=fcef0b35e58d0d676b1560d563b518212f84e78b Fix out-of-band deref of (potentially) gone threads structure Signed-off-by: Jens Axboe --- diff --git a/fio.c b/fio.c index c17ea3c3..37a425e8 100644 --- a/fio.c +++ b/fio.c @@ -101,6 +101,9 @@ static void terminate_threads(int group_id) static void sig_handler(int sig) { + if (!threads) + return; + switch (sig) { case SIGALRM: update_io_ticks();