commit | 15b87723551b424d0db4c53577b567e670c7d4d8 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@kernel.dk> | Wed Oct 12 09:42:33 2011 +0200 |
committer | Jens Axboe <axboe@kernel.dk> | Wed Oct 12 09:46:01 2011 +0200 |
tree | ca60db0e201322984467664b417ba7b0e0b736d0 | |
parent | 5efce23f88563bc08f64e122297fcfbea32fdd4f [diff] |
Fix bad random offset generation for file map If OS_RAND_MAX and FRAND_MAX are different, then ensure that we use the right one. If not, our lookup cache could be outside the allowed range, thus causing a segfault by indexing f->file_map beyond end of the array. Signed-off-by: Jens Axboe <axboe@kernel.dk>