From: Jens Axboe Date: Sun, 6 Apr 2014 15:56:10 +0000 (-0600) Subject: Fix crash in setup_files() if no files are defined X-Git-Tag: fio-2.1.8~12 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=d1e78e6b0429bac92794fb6f1c24b5078c68da6d;hp=d1e78e6b0429bac92794fb6f1c24b5078c68da6d Fix crash in setup_files() if no files are defined Commit 002fe73409d1e moved the division by o->nr_files outside of the file loop, so for error cases we could end up with doing the division without having files defined. Crash ensues. Signed-off-by: Jens Axboe ---