Fix crash in setup_files() if no files are defined
authorJens Axboe <axboe@fb.com>
Sun, 6 Apr 2014 15:56:10 +0000 (09:56 -0600)
committerJens Axboe <axboe@fb.com>
Sun, 6 Apr 2014 15:56:10 +0000 (09:56 -0600)
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 <axboe@fb.com>

No differences found